[issue32779] urljoining an empty query string doesn't clear query string

2021-05-28 Thread Paul Fisher
Paul Fisher added the comment: Reading more into this, from section 5.2,1: > A component is undefined if its associated delimiter does not appear in the > URI reference So you could say that since there is a '?', the query component is *defined*, but *empty*. This would mean that ass

[issue32779] urljoining an empty query string doesn't clear query string

2018-02-15 Thread Paul Fisher
Paul Fisher <p...@pfish.zone> added the comment: In this case, the RFC is mismatched from the actual behaviour of browsers (as described and codified by WhatWG). It was surprising to me that urljoin() didn't do what I percieved as "the right thing" (and I expect other users

[issue32779] urljoining an empty query string doesn't clear query string

2018-02-09 Thread Paul Fisher
Paul Fisher <p...@pfish.zone> added the comment: I'm working on a patch for this and can have one up in the next week or so, once I get the CLA signed and other boxes ticked. I'm new to the Github process but hopefully it will be a good start for the disc

[issue32779] urljoining an empty query string doesn't clear query string

2018-02-05 Thread Paul Fisher
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