From aafe8d84cbae8813fdef73154337c76849e56c8d Mon Sep 17 00:00:00 2001 From: zhangmingfeng Date: Mon, 3 Sep 2018 11:01:35 +0800 Subject: [PATCH] Update volume_server_handlers_read.go change ext to lower-case --- weed/server/volume_server_handlers_read.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weed/server/volume_server_handlers_read.go b/weed/server/volume_server_handlers_read.go index e1695f00f..64b90b8e7 100644 --- a/weed/server/volume_server_handlers_read.go +++ b/weed/server/volume_server_handlers_read.go @@ -185,6 +185,9 @@ func (vs *VolumeServer) tryHandleChunkedFile(n *storage.Needle, fileName string, func conditionallyResizeImages(originalDataReaderSeeker io.ReadSeeker, ext string, r *http.Request) io.ReadSeeker { rs := originalDataReaderSeeker + if len(ext) > 0 { + ext = strings.ToLower(ext) + } if ext == ".png" || ext == ".jpg" || ext == ".jpeg" || ext == ".gif" { width, height := 0, 0 if r.FormValue("width") != "" {