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