ranm8 / requestify

Simplifies node HTTP request making.
http://ranm8.github.io/requestify
MIT License
223 stars 55 forks source link

Allow basic auth password to be null #46

Closed kevgathuku closed 8 years ago

kevgathuku commented 8 years ago

Providing basic auth credentials with an empty password causes the auth to be set to null, which is not correct. e.g.

{
  "username": "kevin",
  "password": ""
}

Basic auth is now set to null only if both the username and password are not provided or empty

kevgathuku commented 8 years ago

Thanks 👍