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) }