initialize read seeker

This commit is contained in:
Chris Lu 2018-07-24 00:54:15 -07:00
parent c7af289f4b
commit aae77e8ea3

View File

@ -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") != "" {