diff --git a/weed/server/filer_server_handlers_read.go b/weed/server/filer_server_handlers_read.go index fc9cacf39..054a1bd00 100644 --- a/weed/server/filer_server_handlers_read.go +++ b/weed/server/filer_server_handlers_read.go @@ -142,6 +142,9 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request) if rangeReq := r.Header.Get("Range"); rangeReq == "" { ext := filepath.Ext(filename) + if len(ext) > 0 { + ext = strings.ToLower(ext) + } width, height, mode, shouldResize := shouldResizeImages(ext, r) if shouldResize { data, err := filer.ReadAll(fs.filer.MasterClient, entry.Chunks)