This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author op368
Recipients op368
Date 2020-02-29.15:04:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582988648.13.0.340894927922.issue39799@roundup.psfhosted.org>
In-reply-to
Content
According to RFC3986 5.2.2.,
target fragment is always reference fragment
(T.fragment = R.fragment;).

This is different from RFC1808 (4. and 5.2.).
And it is not mentioned
in Modifications section in RFC2396 and RFC3986.

Current:
>>> import urllib.parse
>>> urllib.parse.urljoin('http://a/b#f', '')
'http://a/b#f'

Should return:
'http://a/b'

---

https://tools.ietf.org/html/rfc3986#section-5.2.2
https://tools.ietf.org/html/rfc1808.html#section-4
https://tools.ietf.org/html/rfc1808.html#section-5.2
History
Date User Action Args
2020-02-29 15:04:08op368setrecipients: + op368
2020-02-29 15:04:08op368setmessageid: <1582988648.13.0.340894927922.issue39799@roundup.psfhosted.org>
2020-02-29 15:04:08op368linkissue39799 messages
2020-02-29 15:04:07op368create