Skip to content

Commit

Permalink
fix(http.go): passing body to NewRequestWithContext() in makeRequest()
Browse files Browse the repository at this point in the history
  • Loading branch information
rneillj committed Oct 4, 2021
1 parent 26cee4a commit bd86e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func (h *httpGetter) makeRequest(ctx context.Context, m string, in request, b io
url.QueryEscape(in.GetGroup()),
url.QueryEscape(in.GetKey()),
)
req, err := http.NewRequestWithContext(ctx, m, u, nil)
req, err := http.NewRequestWithContext(ctx, m, u, b)
if err != nil {
return err
}
Expand Down

0 comments on commit bd86e3c

Please sign in to comment.