We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e566f5 commit f40cfa3Copy full SHA for f40cfa3
1 file changed
tee_response.go
@@ -32,6 +32,8 @@ func (t *teeResponse) ServeHTTP(w http.ResponseWriter, r *http.Request) {
32
defer rs.Close()
33
name := path.Base(r.URL.Path)
34
w.Header().Set("ETag", t.etag)
35
+ w.Header().Set("Content-Type", "application/octet-stream")
36
+ w.Header().Set("Content-Length", fmt.Sprint(size))
37
http.ServeContent(w, r, name, t.fileInfo.ModTime(), rs)
38
} else {
39
rs := t.swmr.NewReader(0)
0 commit comments