Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Commit

Permalink
Bug 805598 - mozhttpd fails to serve svg files on linux and windows b…
Browse files Browse the repository at this point in the history
…uildbot slaves;r=jmaher
  • Loading branch information
Jeff Hammel committed Oct 25, 2012
1 parent bbcd9b2 commit 15b0117
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mozhttpd/mozhttpd/mozhttpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ class RequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
log_requests = False
request = None

def __init__(self, *args, **kwargs):
SimpleHTTPServer.SimpleHTTPRequestHandler.__init__(self, *args, **kwargs)
self.extensions_map['.svg'] = 'image/svg+xml'

def _try_handler(self, method):
if self.log_requests:
self.request_log.append({ 'method': method,
Expand Down

0 comments on commit 15b0117

Please sign in to comment.