New submission from Paul Fisher <thetorpedo...@gmail.com>: urljoining with '?' will not clear a query string:
ACTUAL: >>> import urllib.parse >>> urllib.parse.urljoin('http://a/b/c?d=e', '?') 'http://a/b/c?d=e' EXPECTED: 'http://a/b/c' (optionally, with a ? at the end) WhatWG's URL standard expects a relative URL consisting of only a ? to replace a query string: https://url.spec.whatwg.org/#relative-state Seen in versions 3.6 and 2.7, but probably also affects later versions. ---------- components: Library (Lib) messages: 311704 nosy: Paul Fisher priority: normal severity: normal status: open title: urljoining an empty query string doesn't clear query string type: behavior versions: Python 2.7, Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32779> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com