Bug 1621960: Improves mozhttpd compatibility with Python 3 r=egao

Depends on D77964

Differential Revision: https://phabricator.services.mozilla.com/D77965
This commit is contained in:
Mitchell Hentges 2020-06-09 16:44:32 +00:00
Родитель 40bd6f3a2b
Коммит fc50a9dcd8
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -144,7 +144,7 @@ class RequestHandler(SimpleHTTPRequestHandler):
else:
self.send_response(404)
self.end_headers()
self.wfile.write('')
self.wfile.write(b'')
def do_POST(self):
# if we don't have a match, we always fall through to 404 (this may
@ -153,7 +153,7 @@ class RequestHandler(SimpleHTTPRequestHandler):
if not self._try_handler('POST'):
self.send_response(404)
self.end_headers()
self.wfile.write('')
self.wfile.write(b'')
def do_DEL(self):
# if we don't have a match, we always fall through to 404 (this may
@ -162,7 +162,7 @@ class RequestHandler(SimpleHTTPRequestHandler):
if not self._try_handler('DEL'):
self.send_response(404)
self.end_headers()
self.wfile.write('')
self.wfile.write(b'')
def translate_path(self, path):
# this is taken from SimpleHTTPRequestHandler.translate_path(),