-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Handle blank password in basic auth. #690
Conversation
My only issue with this is that now |
@nylen that's true. Are if (Object.prototype.hasOwnProperty.call(options.auth, 'username')) options.auth.user = options.auth.username
if (Object.prototype.hasOwnProperty.call(options.auth, 'password')) options.auth.pass = options.auth.password No need to care about legacy options after this. |
I agree. Personally I would have gone with I put the alias names in there so that you could use either variant, without having to refer back to the docs to remember the naming convention. |
How about that? Last commit? |
Handle blank password in basic auth.
Much cleaner, thanks! |
for some reason Travis is complaining about tests failing with optionals enabled/disbled or something. i have no idea what that means. |
Tests pass locally (for me, at least). |
me too :) |
Fixes #681.