From 2c4a0061bb604cab2e401129861df57d1e4a0b85 Mon Sep 17 00:00:00 2001 From: Marko Kungla Date: Thu, 17 Mar 2022 09:56:53 +0200 Subject: [PATCH] fix: add req method at the start of the req Signed-off-by: Marko Kungla --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index 1be0fd5..a0384e8 100644 --- a/client.go +++ b/client.go @@ -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)