Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/artifact/artifact.go')
-rw-r--r--internal/artifact/artifact.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/artifact/artifact.go b/internal/artifact/artifact.go
index 64156589..bdde8864 100644
--- a/internal/artifact/artifact.go
+++ b/internal/artifact/artifact.go
@@ -77,7 +77,7 @@ func (a *Artifact) TryMakeRequest(host string, w http.ResponseWriter, r *http.Re
}
func (a *Artifact) makeRequest(w http.ResponseWriter, r *http.Request, reqURL *url.URL, token string, additionalHandler func(*http.Response) bool) {
- req, err := http.NewRequest("GET", reqURL.String(), nil)
+ req, err := http.NewRequestWithContext(r.Context(), "GET", reqURL.String(), nil)
if err != nil {
logging.LogRequest(r).WithError(err).Error(createArtifactRequestErrMsg)
errortracking.Capture(err, errortracking.WithRequest(r))