s3: pass through s3 presigned headers

fix https://github.com/chrislusf/seaweedfs/discussions/2502
This commit is contained in:
chrislu
2021-12-15 13:18:53 -08:00
parent bf4d7affc0
commit 7210558c7b
5 changed files with 27 additions and 34 deletions

View File

@@ -301,7 +301,7 @@ func writeResponseContent(filename, mimeType string, rs io.ReadSeeker, w http.Re
}
w.Header().Set("Accept-Ranges", "bytes")
adjustHeaderContentDisposition(w, r, filename)
adjustPassthroughHeaders(w, r, filename)
if r.Method == "HEAD" {
w.Header().Set("Content-Length", strconv.FormatInt(totalSize, 10))