mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix null content type caused exception in hdfs client
fix https://github.com/seaweedfs/seaweedfs/issues/4170
This commit is contained in:
parent
0d085ec175
commit
c47f75eb5b
|
@ -162,6 +162,8 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
|
||||||
}
|
}
|
||||||
if mimeType != "" {
|
if mimeType != "" {
|
||||||
w.Header().Set("Content-Type", mimeType)
|
w.Header().Set("Content-Type", mimeType)
|
||||||
|
} else {
|
||||||
|
w.Header().Set("Content-Type", "application/octet-stream")
|
||||||
}
|
}
|
||||||
|
|
||||||
// print out the header from extended properties
|
// print out the header from extended properties
|
||||||
|
|
Loading…
Reference in a new issue