aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
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)