Supply http request context

This commit is contained in:
Abhishek Pandey 2023-09-25 17:17:49 +05:30
parent 2bd7ee45dd
commit 5802ab29ea

View File

@ -82,7 +82,7 @@ func (hw httpWrapper) Request(
body io.Reader,
headers map[string]string,
) (*http.Response, error) {
req, err := http.NewRequest(method, url, body)
req, err := http.NewRequestWithContext(ctx, method, url, body)
if err != nil {
return nil, clues.Wrap(err, "new http request")
}