Skip to content

Commit

Permalink
Merge pull request #54 from Krinkle/patch-1
Browse files Browse the repository at this point in the history
Update pulley.js: Add encodeURIComponent for auth.
  • Loading branch information
sindresorhus committed Jun 13, 2012
2 parents 20cc48e + b6aa0c0 commit 9cc6759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulley.js
Expand Up @@ -59,7 +59,7 @@
empty: false, empty: false,
hidden: true hidden: true
}], function( err, result ) { }], 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", { request.post("https://" + auth + "@api.github.com/authorizations", {
json: true, json: true,
body: { body: {
Expand Down

0 comments on commit 9cc6759

Please sign in to comment.