aboutsummaryrefslogtreecommitdiff
path: root/weed/replication/source/filer_source.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-09-09 03:53:09 -0700
committerChris Lu <chris.lu@gmail.com>2020-09-09 03:53:09 -0700
commit4fc0bd1a8173e284ff919edb5214f5adf7a90f06 (patch)
tree4f6c6f634150ddbcbe992e131315cc0c121c4dcc /weed/replication/source/filer_source.go
parent5e13bc878ca63c72f71d1e93a9da44b3debc22df (diff)
downloadseaweedfs-4fc0bd1a8173e284ff919edb5214f5adf7a90f06.tar.xz
seaweedfs-4fc0bd1a8173e284ff919edb5214f5adf7a90f06.zip
return http response directly
Diffstat (limited to 'weed/replication/source/filer_source.go')
-rw-r--r--weed/replication/source/filer_source.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/replication/source/filer_source.go b/weed/replication/source/filer_source.go
index 69c23fe82..ee2c77ef1 100644
--- a/weed/replication/source/filer_source.go
+++ b/weed/replication/source/filer_source.go
@@ -79,16 +79,16 @@ func (fs *FilerSource) LookupFileId(part string) (fileUrl string, err error) {
return
}
-func (fs *FilerSource) ReadPart(part string) (filename string, header http.Header, readCloser io.ReadCloser, err error) {
+func (fs *FilerSource) ReadPart(part string) (filename string, header http.Header, resp *http.Response, err error) {
fileUrl, err := fs.LookupFileId(part)
if err != nil {
return "", nil, nil, err
}
- filename, header, readCloser, err = util.DownloadFile(fileUrl)
+ filename, header, resp, err = util.DownloadFile(fileUrl)
- return filename, header, readCloser, err
+ return filename, header, resp, err
}
var _ = filer_pb.FilerClient(&FilerSource{})