Loading django/core/servers/basehttp.py +1 −1 Original line number Diff line number Diff line Loading @@ -129,7 +129,7 @@ class WSGIRequestHandler(simple_server.WSGIRequestHandler, object): elif args[1][0] == '4': # 0x16 = Handshake, 0x03 = SSL 3.0 or TLS 1.x if args[0].startswith(str('\x16\x03')): msg = ("You're accessing the developement server over HTTPS, " msg = ("You're accessing the development server over HTTPS, " "but it only supports HTTP.\n") msg = self.style.HTTP_BAD_REQUEST(msg) else: Loading tests/servers/test_basehttp.py +1 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ class WSGIRequestHandlerTestCase(TestCase): with captured_stderr() as stderr: handler.log_message("GET %s %s", str('\x16\x03'), "4") self.assertIn( "You're accessing the developement server over HTTPS, " "You're accessing the development server over HTTPS, " "but it only supports HTTP.", stderr.getvalue() ) Loading Loading
django/core/servers/basehttp.py +1 −1 Original line number Diff line number Diff line Loading @@ -129,7 +129,7 @@ class WSGIRequestHandler(simple_server.WSGIRequestHandler, object): elif args[1][0] == '4': # 0x16 = Handshake, 0x03 = SSL 3.0 or TLS 1.x if args[0].startswith(str('\x16\x03')): msg = ("You're accessing the developement server over HTTPS, " msg = ("You're accessing the development server over HTTPS, " "but it only supports HTTP.\n") msg = self.style.HTTP_BAD_REQUEST(msg) else: Loading
tests/servers/test_basehttp.py +1 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ class WSGIRequestHandlerTestCase(TestCase): with captured_stderr() as stderr: handler.log_message("GET %s %s", str('\x16\x03'), "4") self.assertIn( "You're accessing the developement server over HTTPS, " "You're accessing the development server over HTTPS, " "but it only supports HTTP.", stderr.getvalue() ) Loading