Fix the GET request.
This commit is contained in:
parent
e1a161edc9
commit
690a76c3b7
@ -141,7 +141,7 @@ class CalendarHTTPHandler(server.BaseHTTPRequestHandler):
|
|||||||
@check_rights
|
@check_rights
|
||||||
def do_GET(self):
|
def do_GET(self):
|
||||||
"""Manage GET request."""
|
"""Manage GET request."""
|
||||||
answer = self._calendar.read().encode(self._encoding)
|
answer = self._calendar.text.encode(self._encoding)
|
||||||
|
|
||||||
self.send_response(client.OK)
|
self.send_response(client.OK)
|
||||||
self.send_header("Content-Length", len(answer))
|
self.send_header("Content-Length", len(answer))
|
||||||
|
Loading…
Reference in New Issue
Block a user