From 0202756540e45c3fa2977022dc24d83a307d4ff9 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Sun, 1 May 2011 17:51:27 +0200 Subject: [PATCH] Cast header item into list for Python 3.x compatibility --- radicale/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index bcb4cf1..705bac1 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -188,7 +188,7 @@ class Application(object): # Start response status = "%i %s" % (status, client.responses.get(status, "")) - start_response(status, headers.items()) + start_response(status, list(headers.items())) # Return response content return [answer] if answer else []