From d228bcbad2662747ccdc51f10f9502149b86b5c4 Mon Sep 17 00:00:00 2001 From: Lukasz Langa Date: Wed, 11 May 2011 14:57:27 +0200 Subject: [PATCH] report needs a content-type as well. --- radicale/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index fd7a772..5742da6 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -296,7 +296,8 @@ class Application(object): def report(self, environ, calendar, content): """Manage REPORT request.""" + headers = {'Content-Type': 'text/xml'} answer = xmlutils.report(environ["PATH_INFO"], content, calendar) - return client.MULTI_STATUS, {}, answer + return client.MULTI_STATUS, headers, answer # pylint: enable=W0612,W0613,R0201