-
Notifications
You must be signed in to change notification settings - Fork 137
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
username/password in URLs #335
Labels
Comments
The error is something like this (note that the password after the colon is now gone). This is if you passed in something like
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a
DecodedURL
with a username/password in it is passed to a treq API, an error results about encoding a colon character (and the password is removed). (I can followup with the traceback but I don't have it immediately handy).To make such a URL work, one can simply pass
auth=url.userinfo
to thetreq
reqeuest (and.replace(userinfo=())
to remove the username/password from URL) so it might be nice to have that as "a feature" intreq
itself. That is, take out the userinfo from theDecodedURL
and use it for authentication.The text was updated successfully, but these errors were encountered: