GH-127090: Fix `urllib.response.addinfourl.url` value for opened `file:` URIs (#127091)
The canonical `file:` URL (as generated by `pathname2url()`) is now used as the `url` attribute of the returned `addinfourl` object. The `addinfourl.url` attribute reflects the resolved URL for both `file:` or `http[s]:` URLs now.
B
Barney Gale committed
79b7cab50a3292a1c01466cf0e69fb7b4e56cfb1
Parent: 27d0d21
Committed by GitHub <noreply@github.com>
on 12/7/2024, 5:58:42 PM