gh-76960: Fix urljoin() and urldefrag() for URIs with empty components (GH-123273)
* urljoin() with relative reference "?" sets empty query and removes fragment. * Preserve empty components (authority, params, query, fragment) in urljoin(). * Preserve empty components (authority, params, query) in urldefrag(). Also refactor the code and get rid of double _coerce_args() and _coerce_result() calls in urljoin(), urldefrag(), urlparse() and urlunparse().
S
Serhiy Storchaka committed
fc897fcc01964649f023e0baa4c95d142e4e8a10
Parent: e5a567b
Committed by GitHub <noreply@github.com>
on 8/31/2024, 9:42:08 AM