From 5802ab29ea0059c77f7d331aa1d076a55681812c Mon Sep 17 00:00:00 2001 From: Abhishek Pandey Date: Mon, 25 Sep 2023 17:17:49 +0530 Subject: [PATCH] Supply http request context --- src/internal/m365/graph/http_wrapper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/m365/graph/http_wrapper.go b/src/internal/m365/graph/http_wrapper.go index fdffb583f..addc8b7a2 100644 --- a/src/internal/m365/graph/http_wrapper.go +++ b/src/internal/m365/graph/http_wrapper.go @@ -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") }