From f0e4408dc05a53e6a07058a20e74cb3de029c18a Mon Sep 17 00:00:00 2001 From: Vil Surkin Date: Fri, 15 Nov 2013 17:51:41 +0200 Subject: [PATCH] preven double-quoting object name --- swift3/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swift3/middleware.py b/swift3/middleware.py index 0a8839c5..68d762f5 100644 --- a/swift3/middleware.py +++ b/swift3/middleware.py @@ -852,7 +852,7 @@ class Swift3Middleware(object): def get_controller(self, env, path): container, obj = split_path(path, 0, 2, True) - d = dict(container_name=container, object_name=obj) + d = dict(container_name=container, object_name=unquote(obj)) if 'QUERY_STRING' in env: args = dict(urlparse.parse_qsl(env['QUERY_STRING'], 1))