diff --git a/gitea-to-ics.py b/gitea-to-ics.py index e10d868..6386135 100644 --- a/gitea-to-ics.py +++ b/gitea-to-ics.py @@ -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')