mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
gh-91838: Resolve more HTTP links which redirect to HTTPS (GH-95650)
This commit is contained in:
parent
78a85a34ea
commit
cc9160a29b
4 changed files with 4 additions and 4 deletions
|
|
@ -364,7 +364,7 @@ except ImportError:
|
|||
initial_slashes = path.startswith(sep)
|
||||
# POSIX allows one or two initial slashes, but treats three or more
|
||||
# as single slash.
|
||||
# (see http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13)
|
||||
# (see https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13)
|
||||
if (initial_slashes and
|
||||
path.startswith(sep*2) and not path.startswith(sep*3)):
|
||||
initial_slashes = 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue