소스 검색

report needs a content-type as well.

Lukasz Langa 15 년 전
부모
커밋
d228bcbad2
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      radicale/__init__.py

+ 2 - 1
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