From 9a5e695ca3598e34a5efec1cd8f5a9a355e790f6 Mon Sep 17 00:00:00 2001 From: Jeff Hammel Date: Tue, 13 Nov 2012 16:10:25 -0800 Subject: [PATCH] Bug 805633 - update mozhttpd on m-c;r=wlach ; DONTBUILD because NPOTB --- testing/mozbase/mozhttpd/mozhttpd/mozhttpd.py | 4 ++++ testing/mozbase/mozhttpd/setup.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/testing/mozbase/mozhttpd/mozhttpd/mozhttpd.py b/testing/mozbase/mozhttpd/mozhttpd/mozhttpd.py index 275cb2b4d3be..b7ea21b0c083 100755 --- a/testing/mozbase/mozhttpd/mozhttpd/mozhttpd.py +++ b/testing/mozbase/mozhttpd/mozhttpd/mozhttpd.py @@ -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, diff --git a/testing/mozbase/mozhttpd/setup.py b/testing/mozbase/mozhttpd/setup.py index ecdec74a1244..7f027d0c616c 100644 --- a/testing/mozbase/mozhttpd/setup.py +++ b/testing/mozbase/mozhttpd/setup.py @@ -11,7 +11,7 @@ try: except IOError: description = None -PACKAGE_VERSION = '0.4' +PACKAGE_VERSION = '0.5' deps = []