mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #26586: Simple enhancements to BaseHTTPRequestHandler by Xiang Zhang
This commit is contained in:
parent
b93e4b2480
commit
50badad807
2 changed files with 14 additions and 16 deletions
|
@ -855,7 +855,7 @@ class BaseHTTPRequestHandlerTestCase(unittest.TestCase):
|
|||
# Issue #6791: same for headers
|
||||
result = self.send_typical_request(
|
||||
b'GET / HTTP/1.1\r\nX-Foo: bar' + b'r' * 65537 + b'\r\n\r\n')
|
||||
self.assertEqual(result[0], b'HTTP/1.1 400 Line too long\r\n')
|
||||
self.assertEqual(result[0], b'HTTP/1.1 431 Line too long\r\n')
|
||||
self.assertFalse(self.handler.get_called)
|
||||
self.assertEqual(self.handler.requestline, 'GET / HTTP/1.1')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue