mirror of
https://github.com/mailgun/groupcache.git
synced 2024-09-28 23:00:56 +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.GetGroup()),
|
||||||
url.QueryEscape(in.GetKey()),
|
url.QueryEscape(in.GetKey()),
|
||||||
)
|
)
|
||||||
req, err := http.NewRequestWithContext(ctx, m, u, nil)
|
req, err := http.NewRequestWithContext(ctx, m, u, b)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user