mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 09:18:55 +00:00
parent
4c6690f5f0
commit
ff9d6a75c7
12
src/curl.cpp
12
src/curl.cpp
@ -2269,6 +2269,18 @@ int S3fsCurl::RequestPerform(bool dontAddAuthHeaders /*=false*/)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
// Try to parse more specific AWS error code otherwise fall back to HTTP error code.
|
||||||
|
std::string value;
|
||||||
|
if(simple_parse_xml(bodydata.str(), bodydata.size(), "Code", value)){
|
||||||
|
// TODO: other error codes
|
||||||
|
if(value == "EntityTooLarge"){
|
||||||
|
result = -EFBIG;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Service response codes which are >= 300 && < 500
|
// Service response codes which are >= 300 && < 500
|
||||||
switch(responseCode){
|
switch(responseCode){
|
||||||
case 301:
|
case 301:
|
||||||
|
Loading…
Reference in New Issue
Block a user