Add content disposition
This commit is contained in:
parent
01736ba0fa
commit
74b6d0ee83
|
@ -62,6 +62,8 @@ class Root:
|
|||
'Basic realm="ICS access"'
|
||||
cherrypy.response.headers['Content-Type'] = \
|
||||
'text/calendar'
|
||||
cherrypy.response.headers['Content-Disposition'] = \
|
||||
'attachment; filename="Gitea TODO.ics"'
|
||||
authorization = cherrypy.request.headers.get('Authorization', ':')
|
||||
if not authorization:
|
||||
raise cherrypy.HTTPError(401, 'Unauthorized')
|
||||
|
|
Loading…
Reference in New Issue
Block a user