From aae77e8ea3fb520521de9ad6d3f2c5c16c9fa027 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 24 Jul 2018 00:54:15 -0700 Subject: [PATCH] initialize read seeker --- weed/server/volume_server_handlers_read.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/server/volume_server_handlers_read.go b/weed/server/volume_server_handlers_read.go index 9f2a46910..9568b6b54 100644 --- a/weed/server/volume_server_handlers_read.go +++ b/weed/server/volume_server_handlers_read.go @@ -185,6 +185,7 @@ func (vs *VolumeServer) tryHandleChunkedFile(n *storage.Needle, fileName string, } defer chunkedFileReader.Close() var rs io.ReadSeeker + rs = chunkedFileReader if ext == ".png" || ext == ".jpg" || ext == ".jpeg" || ext == ".gif" { width, height := 0, 0 if r.FormValue("width") != "" {