]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-100985: Consistently wrap IPv6 IP address during CONNECT (GH-100986) (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 17 Feb 2024 14:15:21 +0000 (16:15 +0200)
committerGitHub <noreply@github.com>
Sat, 17 Feb 2024 14:15:21 +0000 (14:15 +0000)
commit6fbc61070fda2ffb8889e77e3b24bca4249ab4d1
treec57348e864d3e58a900efd3c8bc4e072d7ccce87
parenta6776cdc53cf372318a3b3b3b79afadcc2349a8d
[3.11] gh-100985: Consistently wrap IPv6 IP address during CONNECT (GH-100986) (GH-115606)

Update _get_hostport to always remove square brackets
from IPv6 addresses. Then add them if needed
in "CONNECT .." and "Host: ".
(cherry picked from commit 465db27cb983084e718a1fd9519b2726c96935cb)

Co-authored-by: Derek Higgins <derekh@redhat.com>
Lib/http/client.py
Lib/test/test_httplib.py
Misc/ACKS
Misc/NEWS.d/next/Library/2023-01-12-14-16-01.gh-issue-100985.GT5Fvd.rst [new file with mode: 0644]