mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-12 20:30:57 +00:00
Add Last-Modified HTTP header for GET requests.
This commit is contained in:
parent
97dd530bb6
commit
391037c24c
3 changed files with 17 additions and 0 deletions
|
@ -169,6 +169,7 @@ class CalendarHTTPHandler(server.BaseHTTPRequestHandler):
|
|||
self.send_response(client.OK)
|
||||
self.send_header("Content-Length", len(answer))
|
||||
self.send_header("Content-Type", "text/calendar")
|
||||
self.send_header("Last-Modified", self._calendar.last_modified)
|
||||
self.send_header("ETag", etag)
|
||||
self.end_headers()
|
||||
self.wfile.write(answer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue