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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
weed filer: set content-type consistent with filer store
Chris Lu65757ae2fd41
diff --git a/weed/server/filer_server_handlers_read.go b/weed/server/filer_server_handlers_read.goindex 89d47b0b87..63fd2cc39a 100644--- a/weed/server/filer_server_handlers_read.go+++ b/weed/server/filer_server_handlers_read.go@@ -111,13 +111,16 @@ func (fs *FilerServer) handleSingleChunk(w http.ResponseWriter, r *http.Request,for k, v := range resp.Header {w.Header()[k] = v}+ if entry.Attr.Mime != "" {+ w.Header().Set("Content-Type", entry.Attr.Mime)+ }w.WriteHeader(resp.StatusCode)io.Copy(w, resp.Body)}func (fs *FilerServer) handleMultipleChunks(w http.ResponseWriter, r *http.Request, entry *filer2.Entry) {- mimeType := entry.Mime+ mimeType := entry.Attr.Mimeif mimeType == "" {if ext := path.Ext(entry.Name()); ext != "" {mimeType = mime.TypeByExtension(ext)