mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-24 19:19:11 +08:00
initialize read seeker
This commit is contained in:
parent
c7af289f4b
commit
aae77e8ea3
@ -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") != "" {
|
||||
|
Loading…
Reference in New Issue
Block a user