Skip to content

Commit

Permalink
Adding Accept header for good measure and fixing some typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Wesselhoeft committed Aug 8, 2011
1 parent b4dda6b commit 93ebc9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/armory.js
Expand Up @@ -8,7 +8,7 @@ exports.publicKey = null;

// Makes request
function get(options, callback) {
var headers = { 'Connection': 'keep-alive' },
var headers = { 'Accept': 'application/json', 'Connection': 'keep-alive' },
uri, path;

if (typeof options === 'string') {
Expand Down Expand Up @@ -196,7 +196,7 @@ exports.auction = function() {
return callback();
}

callback(res.files);
callback(null, res.files);
});
};

Expand Down Expand Up @@ -224,7 +224,7 @@ exports.auctionData = function() {
};

args.push(getData);
this.auction.apply(args);
this.auction.apply(this, args);
};


Expand Down
2 changes: 1 addition & 1 deletion tests/guild.test.js
Expand Up @@ -40,7 +40,7 @@ module.exports = {

options.lastModified = guild.lastModified;

armory(options, function(err, guild) {
armory.guild(options, function(err, guild) {
test.ifError(err);
test.equal(guild, undefined);
test.done();
Expand Down

0 comments on commit 93ebc9f

Please sign in to comment.