report needs a content-type as well.
This commit is contained in:
parent
8f2335093d
commit
d228bcbad2
@ -296,7 +296,8 @@ class Application(object):
|
|||||||
|
|
||||||
def report(self, environ, calendar, content):
|
def report(self, environ, calendar, content):
|
||||||
"""Manage REPORT request."""
|
"""Manage REPORT request."""
|
||||||
|
headers = {'Content-Type': 'text/xml'}
|
||||||
answer = xmlutils.report(environ["PATH_INFO"], content, calendar)
|
answer = xmlutils.report(environ["PATH_INFO"], content, calendar)
|
||||||
return client.MULTI_STATUS, {}, answer
|
return client.MULTI_STATUS, headers, answer
|
||||||
|
|
||||||
# pylint: enable=W0612,W0613,R0201
|
# pylint: enable=W0612,W0613,R0201
|
||||||
|
Loading…
Reference in New Issue
Block a user