Add content disposition
This commit is contained in:
parent
01736ba0fa
commit
74b6d0ee83
|
@ -62,6 +62,8 @@ class Root:
|
||||||
'Basic realm="ICS access"'
|
'Basic realm="ICS access"'
|
||||||
cherrypy.response.headers['Content-Type'] = \
|
cherrypy.response.headers['Content-Type'] = \
|
||||||
'text/calendar'
|
'text/calendar'
|
||||||
|
cherrypy.response.headers['Content-Disposition'] = \
|
||||||
|
'attachment; filename="Gitea TODO.ics"'
|
||||||
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