Skip to content

Commit 7e3237a

Browse files
authored
Fix CI
1 parent bc8bad0 commit 7e3237a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/http/cookiejar.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,11 +661,12 @@ def request_port(request):
661661
port = match[0].removeprefix(':')
662662
else:
663663
i = request.host.rfind(':')
664-
if (i >= 0
664+
if (i >= 0
665665
and not ']' in request.host[i+1:]): # to prevent IPv6 addresses
666666
_debug("nonnumeric port: '%s'", request.host[i+1:])
667667
port = DEFAULT_HTTP_PORT
668668
return port
669+
669670
# Characters in addition to A-Z, a-z, 0-9, '_', '.', and '-' that don't
670671
# need to be escaped to form a valid HTTP URL (RFCs 2396 and 1738).
671672
HTTP_PATH_SAFE = "%/;:@&=+$,!~*'()"

0 commit comments

Comments
 (0)