mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 09:34:52 +08:00
support gzip file upload, fix problem during replication of gzipped data
This commit is contained in:
@@ -78,7 +78,7 @@ func upload(filename string, server string, fid string) (int, error) {
|
||||
debug("Failed to stat file:", filename)
|
||||
return 0, fiErr
|
||||
}
|
||||
ret, e := operation.Upload("http://"+server+"/"+fid+"?ts="+strconv.Itoa(int(fi.ModTime().Unix())), path.Base(filename), fh)
|
||||
ret, e := operation.Upload("http://"+server+"/"+fid+"?ts="+strconv.Itoa(int(fi.ModTime().Unix())), path.Base(filename), fh, false)
|
||||
if e != nil {
|
||||
return 0, e
|
||||
}
|
||||
|
Reference in New Issue
Block a user