Merge pull request #58 from vills/fix_quoting

fix requests without object_name
This commit is contained in:
FUJITA Tomonori 2013-11-19 11:12:24 -08:00
commit 9a2ce5e472
1 changed files with 1 additions and 1 deletions

View File

@ -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=unquote(obj))
d = dict(container_name=container, object_name=unquote(obj) if obj is not None else obj)
if 'QUERY_STRING' in env:
args = dict(urlparse.parse_qsl(env['QUERY_STRING'], 1))