This commit is contained in:
Chris Lu committed 2020-07-25 20:09:19 -07:00
1 parent 023a1efdf2
commit 3faa0aa448
3 files changed
+3 -3

No files matched your search

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