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.
Created on 2015年05月30日 18:05 by gdata gmail, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg244477 - (view) | Author: gdata gmail (gdata gmail) | Date: 2015年05月30日 18:05 | |
The documenatation for urllib.parse (https://docs.python.org/3.0/library/urllib.parse.html) states several times: "This may result in a slightly different, but equivalent URL, if the URL that was parsed originally had unnecessary delimiters (for example, a ? with an empty query; the RFC states that these are equivalent)." This is false -- RFC 3986 explicitly states that ? with an empty query is _not_ equivalent to a URL without it. For example, the following two URL's should be considered different: http://example.com/? http://example.com/ https://tools.ietf.org/html/rfc3986#section-6.2.3 |
|||
| msg244515 - (view) | Author: Martin Panter (martin.panter) * (Python committer) | Date: 2015年05月31日 04:34 | |
This is essentially the same as Issue 22852. The title just refers to stripping an empty #fragment, but the netloc and query components are also affected. I have a patch there which needs reviewing, if you are interested. Or if you have any alternative ideas on how to solve this they would be welcome too. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:17 | admin | set | github: 68520 |
| 2015年05月31日 04:34:30 | martin.panter | set | status: open -> closed superseder: urllib.parse wrongly strips empty #fragment, ?query, //netloc nosy: + martin.panter messages: + msg244515 resolution: duplicate stage: resolved |
| 2015年05月30日 23:03:38 | ned.deily | set | nosy:
+ orsenthil |
| 2015年05月30日 18:05:17 | gdata gmail | create | |