Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (9 sloc) 0.443 kb
from SimpleHTTPServer import BaseHTTPServer, SimpleHTTPRequestHandler
class LessSimpleHTTPRequestHandler(SimpleHTTPRequestHandler):
def guess_type(self, path):
if path.endswith('.appcache'):
return 'text/cache-manifest'
return SimpleHTTPRequestHandler.guess_type(self, path)
if __name__ == '__main__':
BaseHTTPServer.test(LessSimpleHTTPRequestHandler,
BaseHTTPServer.HTTPServer)
Jump to Line
Something went wrong with that request. Please try again.