We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e446056 commit 62470b8Copy full SHA for 62470b8
1 file changed
Lib/test/test_httplib.py
@@ -281,6 +281,14 @@ def test_ipv6host_header(self):
281
conn.request('GET', '/foo')
282
self.assertTrue(sock.data.startswith(expected))
283
284
+ expected = b'GET /foo HTTP/1.1\r\nHost: [fe80::]\r\n' \
285
+ b'Accept-Encoding: identity\r\n\r\n'
286
+ conn = client.HTTPConnection('[fe80::%2]')
287
+ sock = FakeSocket('')
288
+ conn.sock = sock
289
+ conn.request('GET', '/foo')
290
+ self.assertTrue(sock.data.startswith(expected))
291
+
292
def test_malformed_headers_coped_with(self):
293
# Issue 19996
294
body = "HTTP/1.1 200 OK\r\nFirst: val\r\n: nval\r\nSecond: val\r\n\r\n"
0 commit comments