Add response content type
This commit is contained in:
parent
e9d22e69c9
commit
01736ba0fa
|
@ -60,6 +60,8 @@ class Root:
|
||||||
def todo(self):
|
def todo(self):
|
||||||
cherrypy.response.headers['WWW-Authenticate'] = \
|
cherrypy.response.headers['WWW-Authenticate'] = \
|
||||||
'Basic realm="ICS access"'
|
'Basic realm="ICS access"'
|
||||||
|
cherrypy.response.headers['Content-Type'] = \
|
||||||
|
'text/calendar'
|
||||||
authorization = cherrypy.request.headers.get('Authorization', ':')
|
authorization = cherrypy.request.headers.get('Authorization', ':')
|
||||||
if not authorization:
|
if not authorization:
|
||||||
raise cherrypy.HTTPError(401, 'Unauthorized')
|
raise cherrypy.HTTPError(401, 'Unauthorized')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user