Skip to content

Commit 3b9620c

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

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/http/cookiejar.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,9 +659,10 @@ def eff_request_host(request):
659659
from ipaddress import IPv6Address
660660
try:
661661
IPv6Address(req_host.removeprefix('[').removesuffix(']'))
662-
is_ipV6 = True
663662
except ValueError:
664663
is_ipV6 = False
664+
else:
665+
is_ipV6 = True
665666
else:
666667
is_ipV6 = False
667668
if "." not in req_host and not is_ipV6:

0 commit comments

Comments
 (0)