-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix #2247 #2249
fix #2247 #2249
Conversation
This looks right, but it's hard for me to know because URLs are a crazy mess. I'll let @sigmavirus24 review this, he knows URLs better than I do. |
So if we used a better (read: less forgiving) URL parser library we wouldn't need to split on
And
|
@@ -17,7 +17,7 @@ | |||
from .packages.urllib3.util import Timeout as TimeoutSauce | |||
from .compat import urlparse, basestring, urldefrag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the import of urldefrag
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sigmavirus24 done
+∞. I think it would be best to have URL objects that are immutable and an API like URL.replace(userinfo=None, fragment=None) |
@t-8ch that's roughly |
@sigmavirus24 Please open the specific issue with urllib3's url parser, no need to be backhanded. :) |
Sorry @shazow, it wasn't meant to be back handed. I'll pull together the list of things the object is missing and make an issue with it tonight. |
Thanks. :) |
What's the status of this? |
We have to pass urllib3 the url without the authentication information,
else it will be parsed by httplib as a netloc and included in the request line
and Host header