diff options
Diffstat (limited to 'weed/util')
| -rw-r--r-- | weed/util/constants.go | 2 | ||||
| -rw-r--r-- | weed/util/http_util.go | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/weed/util/constants.go b/weed/util/constants.go index 498ef11a2..f1864cf95 100644 --- a/weed/util/constants.go +++ b/weed/util/constants.go @@ -5,7 +5,7 @@ import ( ) var ( - VERSION = fmt.Sprintf("%s %d.%02d", sizeLimit, 2, 8) + VERSION = fmt.Sprintf("%s %d.%02d", sizeLimit, 2, 10) COMMIT = "" ) 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) } |
