Skip to content

Commit

Permalink
Incorrect error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
virtualzone committed Jul 19, 2024
1 parent b9ead78 commit e747a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ func (client *Client) httpRequest(method, uri string, requestHeaders, params HTT
},
}
req, err := http.NewRequest(method, uri, reader)
req.ContentLength = int64(reader.Len())
if err != nil {
return -1, nil, err
}
req.ContentLength = int64(reader.Len())
for name, value := range requestHeaders {
req.Header.Add(name, value)
}
Expand Down

0 comments on commit e747a6a

Please sign in to comment.