aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-09-21 01:54:29 -0700
committerChris Lu <chris.lu@gmail.com>2018-09-21 01:54:29 -0700
commita6cfaba018984ba17b9eab802db909bac644b67b (patch)
tree71d00727c28ac5cc527412306db3b98763f2eb68 /weed/command
parenta8cd7df44ae5d3bea4b0c9ce3d3ab71c7b3cc60c (diff)
downloadseaweedfs-a6cfaba018984ba17b9eab802db909bac644b67b.tar.xz
seaweedfs-a6cfaba018984ba17b9eab802db909bac644b67b.zip
able to sync the changes
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/download.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/download.go b/weed/command/download.go
index 39ed2b38e..b3e33defd 100644
--- a/weed/command/download.go
+++ b/weed/command/download.go
@@ -55,7 +55,7 @@ func downloadToFile(server, fileId, saveDir string) error {
if lookupError != nil {
return lookupError
}
- filename, rc, err := util.DownloadUrl(fileUrl)
+ filename, _, rc, err := util.DownloadFile(fileUrl)
if err != nil {
return err
}
@@ -108,7 +108,7 @@ func fetchContent(server string, fileId string) (filename string, content []byte
return "", nil, lookupError
}
var rc io.ReadCloser
- if filename, rc, e = util.DownloadUrl(fileUrl); e != nil {
+ if filename, _, rc, e = util.DownloadFile(fileUrl); e != nil {
return "", nil, e
}
content, e = ioutil.ReadAll(rc)