Merge pull request #911 from ggtakec/master

Added detail error message when HTTP 301/307 status
This commit is contained in:
Takeshi Nakatani 2019-01-20 19:31:04 +09:00 committed by GitHub
commit 0c9a8932f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2085,7 +2085,9 @@ int S3fsCurl::RequestPerform(void)
// Service response codes which are >= 300 && < 500
switch(LastResponseCode){
case 301:
case 307:
S3FS_PRN_ERR("HTTP response code 301(Moved Permanently: also happens when bucket's region is incorrect), returning EIO. Body Text: %s", (bodydata ? bodydata->str() : ""));
S3FS_PRN_ERR("The options of url and endpoint may be useful for solving, please try to use both options.");
return -EIO;
case 400: