Disable strict_slashes for Flask so that S3 works in server mode.
This commit is contained in:
parent
ed0e81fc61
commit
2c6a967f45
2 changed files with 2 additions and 3 deletions
|
|
@ -21,9 +21,7 @@ url_paths = {
|
|||
'{0}/$': S3ResponseInstance.bucket_response,
|
||||
|
||||
# subdomain key of path-based bucket
|
||||
'{0}/(?P<key_or_bucket_name>[^/]+)$': ambiguous_response1,
|
||||
# subdomain key of path-based bucket
|
||||
'{0}/(?P<key_or_bucket_name>[^/]+)/$': ambiguous_response2,
|
||||
'{0}/(?P<key_or_bucket_name>[^/]+)/?$': S3ResponseInstance.ambiguous_response,
|
||||
# path-based bucket + key
|
||||
'{0}/(?P<bucket_name_path>[^/]+)/(?P<key_name>.+)': S3ResponseInstance.key_response,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,6 +113,7 @@ def create_backend_app(service):
|
|||
endpoint=endpoint,
|
||||
methods=HTTP_METHODS,
|
||||
view_func=convert_flask_to_httpretty_response(handler),
|
||||
strict_slashes=False,
|
||||
)
|
||||
|
||||
backend_app.test_client_class = AWSTestHelper
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue