Skip to content

Commit a875311

Browse files
LamentXU123picnixz
andauthored
Update Lib/http/cookiejar.py
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent 267d499 commit a875311

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/http/cookiejar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ def eff_request_host(request):
658658
if req_host.startswith('[') and req_host.endswith(']'):
659659
from ipaddress import IPv6Address
660660
try:
661-
IPv6Address(req_host.removeprefix('[').removesuffix(']'))
661+
IPv6Address(req_host[1:-1])
662662
except ValueError:
663663
is_ipV6 = False
664664
else:

0 commit comments

Comments
 (0)