-
Notifications
You must be signed in to change notification settings - Fork 476
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
url decode username and password #385
Comments
If you supply a username and password in the URL, like |
@squaremo unfortunately I'm using this library via a higher-level library (nodered node) and don't really have access to that. Shouldn't a properly encoded set of credentials work (a la curl, etc)? |
The trouble is that There are a couple of options for improving the situation. From Node 7.0 onwards, there's a different URL parser available in the standard lib which supplies the username and password separately (and presumably deals with percent encoding properly on the way). Failing that, or for older Node, I guess someone could write a URL parser, at least for the first part of the URL. |
Wow awesome! I'll have to wait for a new version to hit before trying this out probably if you want some testing tried on it. |
From what I can tell the library doesn't support a
:
(colon) in the username. I'm encoding it in my configuration and it still appears to be failing. Any tips/thoughts?The text was updated successfully, but these errors were encountered: