Update headers to work with Thunderbird 91
This commit is contained in:
parent
f2a253886f
commit
bd04a1b286
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue