Commit 3048cae9 authored by Stan Hu's avatar Stan Hu

Fix unnecessary fmt.Sprintf (S1039)

This was flagged in
https://gitlab.com/gitlab-org/gitlab-workhorse/-/jobs/684053889.
parent 8b819cbd
......@@ -42,7 +42,7 @@ func allowedXSendfileDownload(t *testing.T, contentFilename string, filePath str
w.Header().Set("X-Sendfile", contentPath)
w.Header().Set("Content-Disposition", fmt.Sprintf(`attachment; filename="%s"`, contentFilename))
w.Header().Set("Content-Type", fmt.Sprintf(`application/octet-stream`))
w.Header().Set("Content-Type", "application/octet-stream")
w.WriteHeader(200)
}))
defer ts.Close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment