You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fix to bpo-1394565 introduces a nasty side-effect:
"GET http://server//file" (with two /s) does not work anymore. It
returns the directory index instead.
This is because urlparse is not applied to an URL, but to its right-hand
part starting at the path.
urlparse.urlparse("http://server//foo")[2] correctly returns //foo, but
urlparse.urlparse("//foo")[2] (as used in this library) returns an empty
string.
Attached is an diff against trunk that adds philfr's suggesitions. I've
also added a test file for testing url parsing, so's these things stay
fixed. Updated Misc/NEWS. No doc or functionallity modified.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: