-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed as not planned
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
on joining a url where the base url not finish on "/" have the following impact
from urllib.parse import urljoin
print(urljoin('https://localhost/1/','2'))
# => https://localhost/1/2
print(urljoin('https://localhost/1/','/2'))
# => https://localhost/2
print(urljoin('https://localhost/1','/2'))
# =>https://localhost/2
print(urljoin('https://localhost/1','2'))
# => https://localhost/2
CPython versions tested on:
3.12
Operating systems tested on:
macOS
Metadata
Metadata
Assignees
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error