Skip to content

Commit

Permalink
Fix headers in RestClient
Browse files Browse the repository at this point in the history
  • Loading branch information
levichevdmitry committed Dec 10, 2020
1 parent 3067ea9 commit 9c400c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/RestClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ func (c *RestClient) Call(prototype reflect.Type, method string, route string, c
return nil, err
}
// Set headers
req.Header.Set("Accept", "application/json")
req.Header.Set("Content-Type", "application/json")
//req.Header.Set("User-Agent", c.UserAgent)
for k, v := range c.Headers.Value() {
req.Header.Set(k, v)
Expand Down

0 comments on commit 9c400c7

Please sign in to comment.