зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
40bd6f3a2b
Коммит
fc50a9dcd8
|
@ -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(),
|
||||
|
|
Загрузка…
Ссылка в новой задаче