🎇 remove set Content-Type for native

pull/659/head
Xhofe 2022-03-02 19:27:40 +08:00
parent 6af17e2509
commit 90b57dacee
1 changed files with 0 additions and 1 deletions

View File

@ -47,7 +47,6 @@ func Proxy(w http.ResponseWriter, r *http.Request, link *base.Link, file *model.
if err != nil { if err != nil {
return err return err
} }
w.Header().Set("Content-Type", "application/octet-stream")
w.Header().Set("Content-Disposition", fmt.Sprintf(`attachment; filename=%s`, url.QueryEscape(file.Name))) w.Header().Set("Content-Disposition", fmt.Sprintf(`attachment; filename=%s`, url.QueryEscape(file.Name)))
http.ServeContent(w, r, file.Name, fileStat.ModTime(), f) http.ServeContent(w, r, file.Name, fileStat.ModTime(), f)
return nil return nil