... | ... |
@@ -519,7 +519,7 @@ def getBucketFromHostname(hostname): |
519 | 519 |
return (hostname, False) |
520 | 520 |
|
521 | 521 |
# Create RE pattern from Config.host_bucket |
522 |
- pattern = S3.Config.Config().host_bucket % { 'bucket' : '(?P<bucket>.*)' } |
|
522 |
+ pattern = S3.Config.Config().host_bucket.lower() % { 'bucket' : '(?P<bucket>.*)' } |
|
523 | 523 |
m = re.match(pattern, hostname, re.UNICODE) |
524 | 524 |
if not m: |
525 | 525 |
return (hostname, False) |