Return calendar mime type for download

merge-requests/30/head
Bob Mottram 2022-02-21 11:43:10 +00:00
parent d27982fbe1
commit 2b74e71ea9
1 changed files with 8 additions and 3 deletions

View File

@ -15567,6 +15567,11 @@ class PubServer(BaseHTTPRequestHandler):
access_keys,
False).encode('utf-8')
msglen = len(msg)
if 'ical=true' in self.path:
self._set_headers('text/calendar',
msglen, cookie, calling_domain,
False)
else:
self._set_headers('text/html',
msglen, cookie, calling_domain,
False)