mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-31 01:28:27 +00:00
Merge pull request #171 from pabigot/mixedcase
Support buckets with mixed-case names
This commit is contained in:
commit
3701f1c16b
@ -121,7 +121,10 @@ static string url_to_host(const std::string &url)
|
||||
|
||||
static string get_bucket_host()
|
||||
{
|
||||
if(!pathrequeststyle){
|
||||
return bucket + "." + url_to_host(host);
|
||||
}
|
||||
return url_to_host(host) + "/" + bucket;
|
||||
}
|
||||
|
||||
#if 0 // noused
|
||||
|
@ -4050,9 +4050,9 @@ int main(int argc, char* argv[])
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
// bucket names cannot contain upper case characters
|
||||
if(lower(bucket) != bucket){
|
||||
fprintf(stderr, "%s: BUCKET %s, upper case characters are not supported\n",
|
||||
// bucket names cannot contain upper case characters in virtual-hosted style
|
||||
if((!pathrequeststyle) && (lower(bucket) != bucket)){
|
||||
fprintf(stderr, "%s: BUCKET %s, name not compatible with virtual-hosted style\n",
|
||||
program_name.c_str(), bucket.c_str());
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user