mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-05 04:17:52 +00:00
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:
parent
ee01c91e02
commit
7fa1e37a28
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user