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/replication/source/filer_source.go | |
| parent | 6238644c35fc5dafcc4eb1722b3d5c9b92c0b031 (diff) | |
| download | seaweedfs-5a0f92423eb4f89d35b245b1913eb7ba60436742.tar.xz seaweedfs-5a0f92423eb4f89d35b245b1913eb7ba60436742.zip | |
use grpc and jwt
Diffstat (limited to 'weed/replication/source/filer_source.go')
| -rw-r--r-- | weed/replication/source/filer_source.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/replication/source/filer_source.go b/weed/replication/source/filer_source.go index f94ad99dd..085c0a700 100644 --- a/weed/replication/source/filer_source.go +++ b/weed/replication/source/filer_source.go @@ -96,7 +96,7 @@ func (fs *FilerSource) LookupFileId(part string) (fileUrls []string, err error) func (fs *FilerSource) ReadPart(fileId string) (filename string, header http.Header, resp *http.Response, err error) { if fs.proxyByFiler { - return util.DownloadFile("http://" + fs.address + "/?proxyChunkId=" + fileId) + return util.DownloadFile("http://" + fs.address + "/?proxyChunkId=" + fileId, "") } fileUrls, err := fs.LookupFileId(fileId) @@ -105,7 +105,7 @@ func (fs *FilerSource) ReadPart(fileId string) (filename string, header http.Hea } for _, fileUrl := range fileUrls { - filename, header, resp, err = util.DownloadFile(fileUrl) + filename, header, resp, err = util.DownloadFile(fileUrl, "") if err != nil { glog.V(1).Infof("fail to read from %s: %v", fileUrl, err) } else { |
