Return calendar mime type for download

main
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,9 +15567,14 @@ class PubServer(BaseHTTPRequestHandler):
access_keys,
False).encode('utf-8')
msglen = len(msg)
self._set_headers('text/html',
msglen, cookie, calling_domain,
False)
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)
self._write(msg)
fitness_performance(getreq_start_time, self.server.fitness,
'_GET', 'calendar shown',