Add Last-Modified HTTP header for GET requests.

This commit is contained in:
Guillaume Ayoub
2010-06-24 01:50:21 +02:00
parent 97dd530bb6
commit 391037c24c
3 changed files with 17 additions and 0 deletions

View File

@@ -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)