Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import SimpleHTTPServer
- class MyHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
- def end_headers(self):
- self.send_my_headers()
- SimpleHTTPServer.SimpleHTTPRequestHandler.end_headers(self)
- def send_my_headers(self):
- self.send_header("Last-Modified", "Sun, 17 May 2014 11:40:02 GMT")
- self.send_header("ETag", "55587e13")
- if __name__ == '__main__':
- SimpleHTTPServer.test(HandlerClass=MyHTTPRequestHandler)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement