Skip to content

Instantly share code, notes, and snippets.

@sifu
Created December 3, 2010 12:46
Show Gist options
  • Save sifu/726914 to your computer and use it in GitHub Desktop.
Save sifu/726914 to your computer and use it in GitHub Desktop.
diff --git a/lib/http-console.js b/lib/http-console.js
index 322a8d1..f763bf3 100644
--- a/lib/http-console.js
+++ b/lib/http-console.js
@@ -50,7 +50,7 @@ this.Console.prototype = new(function () {
if (this.options.json) { this.headers['Content-Type'] = 'application/json' }
if (this.options.auth) {
this.headers['Authorization'] = "Basic " +
- new(Buffer)(this.options.auth.user + ':' + this.options.auth.password).toString('base64');
+ new(Buffer)(this.options.auth.username + ':' + this.options.auth.password).toString('base64'
}
this.stdin = process.openStdin();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment