From 7591e7e9d57b0e040d386a5f5013bae89bbd00bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B8=D0=BB=D1=8C=20=D0=A1=D1=83=D1=80=D0=BA=D0=B8?= =?UTF-8?q?=D0=BD?= Date: Tue, 19 Nov 2013 15:31:25 +0200 Subject: [PATCH] fix requests without object_name --- swift3/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swift3/middleware.py b/swift3/middleware.py index 68d762f5..fb0322a2 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=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))