mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #27125: Fix various errors like “will [be] inherited”
This commit is contained in:
parent
e8a175eaa0
commit
8d56c026a5
13 changed files with 17 additions and 15 deletions
|
@ -255,8 +255,8 @@ class HeaderTests(TestCase):
|
|||
self.assertIn(b'\xa0NonbreakSpace: value', conn._buffer)
|
||||
|
||||
def test_ipv6host_header(self):
|
||||
# Default host header on IPv6 transaction should wrapped by [] if
|
||||
# its actual IPv6 address
|
||||
# Default host header on IPv6 transaction should be wrapped by [] if
|
||||
# it is an IPv6 address
|
||||
expected = b'GET /foo HTTP/1.1\r\nHost: [2001::]:81\r\n' \
|
||||
b'Accept-Encoding: identity\r\n\r\n'
|
||||
conn = client.HTTPConnection('[2001::]:81')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue