Permalink
Browse files

Merge pull request #54 from Krinkle/patch-1

Update pulley.js: Add encodeURIComponent for auth.
  • Loading branch information...
2 parents 20cc48e + b6aa0c0 commit 9cc6759589bca1f48edbce383bf4519552307b50 @sindresorhus sindresorhus committed Jun 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 pulley.js
View
@@ -59,7 +59,7 @@
empty: false,
hidden: true
}], function( err, result ) {
- var auth = result.username + ":" + result.password;
+ var auth = encodeURIComponent( result.username ) + ":" + encodeURIComponent( result.password );
request.post("https://" + auth + "@api.github.com/authorizations", {
json: true,
body: {

0 comments on commit 9cc6759

Please sign in to comment.