diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-12-25 21:39:33 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-12-25 21:39:33 -0800 |
| commit | 1fd8926ac7eaa036e5e2f3a4008c1dbb751b958a (patch) | |
| tree | 51b6207af98f9e2665bd45844e35092345073ec3 /weed/util/http_util.go | |
| parent | 48d28d3eb2ceabe558ec0c0abf4f66c76175a96e (diff) | |
| download | seaweedfs-1fd8926ac7eaa036e5e2f3a4008c1dbb751b958a.tar.xz seaweedfs-1fd8926ac7eaa036e5e2f3a4008c1dbb751b958a.zip | |
ignore draining error
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 684b4d247..667d0b4be 100644 --- a/weed/util/http_util.go +++ b/weed/util/http_util.go @@ -240,7 +240,7 @@ func ReadUrl(fileUrl string, offset int64, size int, buf []byte, isReadRange boo } } // drains the response body to avoid memory leak - data, err := ioutil.ReadAll(reader) + data, _ := ioutil.ReadAll(reader) if len(data) != 0 { err = fmt.Errorf("buffer size is too small. remains %d", len(data)) } |
