Update headers to work with Thunderbird 91

This commit is contained in:
Jules 2021-09-09 23:31:26 +02:00
parent f2a253886f
commit bd04a1b286

View file

@ -16,6 +16,8 @@ def main(calendar):
result = str(process(conf)) result = str(process(conf))
response = make_response(result, 200) response = make_response(result, 200)
response.headers["Content-Disposition"] = "attachment; filename=calendar.ics" response.headers["Content-Disposition"] = "attachment; filename=calendar.ics"
response.headers["Content-Type"] = "text/calendar; charset=utf-8"
except FileNotFoundError: except FileNotFoundError:
response = make_response("Calendar not cached", 425) response = make_response("Calendar not cached", 425)