mirror of
https://github.com/mailgun/groupcache.git
synced 2024-11-16 14:10:04 +00:00
fix(http.go): passing body to NewRequestWithContext() in makeRequest()
This commit is contained in:
parent
26cee4afba
commit
bd86e3ce96
2
http.go
2
http.go
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user