revert fasthttp changes

related to https://github.com/chrislusf/seaweedfs/issues/1907
This commit is contained in:
Chris Lu
2021-03-16 00:33:14 -07:00
parent 10164d0386
commit 4b1ed227d1
7 changed files with 6 additions and 122 deletions

View File

@@ -313,7 +313,7 @@ func ReadUrlAsStream(fileUrl string, cipherKey []byte, isContentGzipped bool, is
}
func readEncryptedUrl(fileUrl string, cipherKey []byte, isContentCompressed bool, isFullChunk bool, offset int64, size int, fn func(data []byte)) (bool, error) {
encryptedData, retryable, err := FastGet(fileUrl)
encryptedData, retryable, err := Get(fileUrl)
if err != nil {
return retryable, fmt.Errorf("fetch %s: %v", fileUrl, err)
}