diff options
Diffstat (limited to 'weed/util/http_util.go')
| -rw-r--r-- | weed/util/http_util.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/weed/util/http_util.go b/weed/util/http_util.go index 67216bb14..92681d8e8 100644 --- a/weed/util/http_util.go +++ b/weed/util/http_util.go @@ -49,8 +49,8 @@ func Post(url string, values url.Values) ([]byte, error) { return b, nil } -// github.com/seaweedfs/seaweedfs/unmaintained/repeated_vacuum/repeated_vacuum.go -// may need increasing http.Client.Timeout +// github.com/seaweedfs/seaweedfs/unmaintained/repeated_vacuum/repeated_vacuum.go +// may need increasing http.Client.Timeout func Get(url string) ([]byte, bool, error) { request, err := http.NewRequest("GET", url, nil) @@ -288,7 +288,6 @@ func ReadUrl(fileUrl string, cipherKey []byte, isContentCompressed bool, isFullC } func ReadUrlAsStream(fileUrl string, cipherKey []byte, isContentGzipped bool, isFullChunk bool, offset int64, size int, fn func(data []byte)) (retryable bool, err error) { - if cipherKey != nil { return readEncryptedUrl(fileUrl, cipherKey, isContentGzipped, isFullChunk, offset, size, fn) } |
