Fix issues with unicode and slashes for S3. Closes #521.

This commit is contained in:
Steve Pulec 2016-05-01 22:03:52 -04:00
commit 0a10b2f738
2 changed files with 13 additions and 1 deletions

View file

@ -15,5 +15,5 @@ url_paths = {
'{0}/(?P<key_or_bucket_name>[^/]+)/?$': S3ResponseInstance.ambiguous_response,
# path-based bucket + key
'{0}/(?P<bucket_name_path>[a-zA-Z0-9\-_./]+)/(?P<key_name>.+)': S3ResponseInstance.key_response,
'{0}/(?P<bucket_name_path>[^/]+)/(?P<key_name>.+)': S3ResponseInstance.key_response,
}