Browse Source

fix null content type caused exception in hdfs client

fix https://github.com/seaweedfs/seaweedfs/issues/4170
pull/4177/head
chrislu 2 years ago
parent
commit
c47f75eb5b
  1. 2
      weed/server/filer_server_handlers_read.go

2
weed/server/filer_server_handlers_read.go

@ -162,6 +162,8 @@ 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