diff options
| author | hilimd <68371223+hilimd@users.noreply.github.com> | 2020-11-13 15:34:38 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-13 15:34:38 +0800 |
| commit | e0d5207ed9ff6350e83497586ac9859d841a711a (patch) | |
| tree | 5fa024e1108a53af325a79f09c0aadd63b41fb3b /weed/util/http_util.go | |
| parent | a38efe2e7baf34cb074c9db095f7db50de0fa156 (diff) | |
| parent | a2962604ad0bf83b26c692c72ddd40e648fb804d (diff) | |
| download | seaweedfs-e0d5207ed9ff6350e83497586ac9859d841a711a.tar.xz seaweedfs-e0d5207ed9ff6350e83497586ac9859d841a711a.zip | |
Merge pull request #36 from chrislusf/master
sync
Diffstat (limited to 'weed/util/http_util.go')
| -rw-r--r-- | weed/util/http_util.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/weed/util/http_util.go b/weed/util/http_util.go index da0b3d849..48823c1c3 100644 --- a/weed/util/http_util.go +++ b/weed/util/http_util.go @@ -370,7 +370,6 @@ func ReadUrlAsReaderCloser(fileUrl string, rangeHeader string) (io.ReadCloser, e if err != nil { return nil, err } - defer CloseResponse(r) if r.StatusCode >= 400 { return nil, fmt.Errorf("%s: %s", fileUrl, r.Status) } |
