Browse Source

fix: 修复默认添加content-type为application/octet-stream导致浏览器无法预览的问题

Signed-off-by: changlin.shi <changlin.shi@ly.com>
pull/5936/head
changlin.shi 1 year ago
parent
commit
42fdce102d
  1. 2
      weed/server/filer_server_handlers_read.go

2
weed/server/filer_server_handlers_read.go

@ -176,8 +176,6 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
}
if mimeType != "" {
w.Header().Set("Content-Type", mimeType)
} else {
w.Header().Set("Content-Type", "application/octet-stream")
}
// print out the header from extended properties

Loading…
Cancel
Save