Browse Source

Cast header item into list for Python 3.x compatibility

Guillaume Ayoub 15 năm trước cách đây
mục cha
commit
0202756540
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      radicale/__init__.py

+ 1 - 1
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 []