Comparing version 0.0.1 to 0.0.2
@@ -18,7 +18,9 @@ (function() { | ||
Heroku.prototype.request = function(opts, fn) { | ||
var expects, headers, query, req; | ||
var auth, expects, headers, query, req; | ||
expects = opts.expects || 200; | ||
auth = new Buffer(":" + this.key).toString("base64"); | ||
headers = { | ||
"X-Heroku-API-Version": "3", | ||
"Accept": "application/json" | ||
"Accept": "application/json", | ||
"Authorization": "Basic " + auth, | ||
"X-Heroku-API-Version": "3" | ||
}; | ||
@@ -29,3 +31,2 @@ opts = { | ||
path: opts.path, | ||
auth: ":" + this.key, | ||
headers: headers | ||
@@ -32,0 +33,0 @@ }; |
{ | ||
"name": "heroku", | ||
"description": "Heroku API bindings for node.", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"homepage": "http://github.com/toots/node-heroku", | ||
@@ -6,0 +6,0 @@ "author": "Romain Beauxis <toots@rastageeks.org", |
Sorry, the diff of this file is not supported yet
99108
30
502