mirror of https://gitlab.com/bashrc2/epicyon
Return calendar mime type for download
parent
d27982fbe1
commit
2b74e71ea9
11
daemon.py
11
daemon.py
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue