Advertisement
Guest User

Untitled

a guest
Jun 19th, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #!/usr/bin/env python
  2. import SimpleHTTPServer
  3.  
  4. class MyHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
  5. def end_headers(self):
  6. self.send_my_headers()
  7.  
  8. SimpleHTTPServer.SimpleHTTPRequestHandler.end_headers(self)
  9.  
  10. def send_my_headers(self):
  11. self.send_header("Last-Modified", "Sun, 17 May 2014 11:40:02 GMT")
  12. self.send_header("ETag", "55587e13")
  13.  
  14. if __name__ == '__main__':
  15. SimpleHTTPServer.test(HandlerClass=MyHTTPRequestHandler)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement