diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-08-12 21:40:33 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-08-12 21:40:33 -0700 |
| commit | 5a0f92423eb4f89d35b245b1913eb7ba60436742 (patch) | |
| tree | 433a3ce97451c9800089b8d87abc09480c0dcf78 /weed/util/http_util.go | |
| parent | 6238644c35fc5dafcc4eb1722b3d5c9b92c0b031 (diff) | |
| download | seaweedfs-5a0f92423eb4f89d35b245b1913eb7ba60436742.tar.xz seaweedfs-5a0f92423eb4f89d35b245b1913eb7ba60436742.zip | |
use grpc and jwt
Diffstat (limited to 'weed/util/http_util.go')
| -rw-r--r-- | weed/util/http_util.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/util/http_util.go b/weed/util/http_util.go index 1630760b1..2efd6b5aa 100644 --- a/weed/util/http_util.go +++ b/weed/util/http_util.go @@ -180,7 +180,7 @@ func GetUrlStream(url string, values url.Values, readFn func(io.Reader) error) e return readFn(r.Body) } -func DownloadFile(fileUrl string) (filename string, header http.Header, resp *http.Response, e error) { +func DownloadFile(fileUrl string, jwt string) (filename string, header http.Header, resp *http.Response, e error) { response, err := client.Get(fileUrl) if err != nil { return "", nil, nil, err |
