Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix null content type caused exception in hdfs client

chrisluc47f75eb5b30
diff --git a/weed/server/filer_server_handlers_read.go b/weed/server/filer_server_handlers_read.go
index 58d1928c64..99ac77498e 100644
--- a/weed/server/filer_server_handlers_read.go
+++ b/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