support gzip file upload, fix problem during replication of gzipped data

This commit is contained in:
Chris Lu
2013-07-15 11:04:43 -07:00
parent c6bd4e656e
commit 70fe7e6b5d
4 changed files with 11 additions and 5 deletions

View File

@@ -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
}