Skip to content

Commit

Permalink
fix: add req method at the start of the req
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Kungla <[email protected]>
  • Loading branch information
mkungla committed Mar 17, 2022
1 parent 4bd114f commit 2c4a006
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func (c *Client) request(

if res != nil {
res.RequestURL = requrl
res.RequestMethod = method
}

req, err := http.NewRequestWithContext(ctx, strings.ToUpper(method), requrl, body)
Expand Down

0 comments on commit 2c4a006

Please sign in to comment.