Changes codes

1) "virtual hosted-style request" for checking bucket
   Old version calls "path-style request" for checking bucket at 
   initializing, then after this revision s3fs requests "virtual 
   hosted-style request".
   This change is related to 
   "Operation not permitted - on any operation(Issue 362)".

2) Changed debugging message level
   Changed debugging message level in prepare_url() from DPRNNN
   to FPRNINFO.



git-svn-id: http://s3fs.googlecode.com/svn/trunk@467 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
ggtakec@gmail.com 2013-08-20 07:16:12 +00:00
parent ee01c91e02
commit 7fa1e37a28
2 changed files with 5 additions and 5 deletions

View File

@ -1734,10 +1734,10 @@ int S3fsCurl::CheckBucket(void)
}
string resource;
string turl;
MakeUrlResource("", resource, turl); // must be path = "".
MakeUrlResource(get_realpath("/").c_str(), resource, turl);
url = turl; // don't use prepare_url() function.
path = "";
url = prepare_url(turl.c_str());
path = "/";
requestHeaders = NULL;
responseHeaders.clear();
bodydata = new BodyData();

View File

@ -126,7 +126,7 @@ bool get_keyword_value(string& target, const char* keyword, string& value)
string prepare_url(const char* url)
{
DPRNNN("URL is %s", url);
FPRNINFO("URL is %s", url);
string uri;
string host;
@ -146,7 +146,7 @@ string prepare_url(const char* url)
url_str = uri + host + path;
DPRNNN("URL changed is %s", url_str.c_str());
FPRNINFO("URL changed is %s", url_str.c_str());
return str(url_str);
}