Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Authentication fails when password contains one or more colons #11
The split method chops the password into parts if the password contains a colon, then the total credentialsParts.length > 2. The HTTP Basic Authentication spec does not restrict passwords this way.
var credentialsParts = new Buffer(parts, 'base64').toString().split(':');