mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-31 17:48:25 +00:00
Merge pull request #899 from gaul/response-code
Tighten up HTTP response code check
This commit is contained in:
commit
9f000957dd
@ -2072,7 +2072,7 @@ int S3fsCurl::RequestPerform(void)
|
||||
S3FS_PRN_ERR("curl_easy_getinfo failed while trying to retrieve HTTP response code");
|
||||
return -EIO;
|
||||
}
|
||||
if(400 > LastResponseCode){
|
||||
if(LastResponseCode >= 200 && LastResponseCode < 300){
|
||||
S3FS_PRN_INFO3("HTTP response code %ld", LastResponseCode);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user