diff --git a/lib/dbox.js b/lib/dbox.js index 9a4316d..2713a38 100644 --- a/lib/dbox.js +++ b/lib/dbox.js @@ -121,6 +121,9 @@ exports.app = function(config){ cb = args args = null } + + var headers = args.headers + delete args.headers var signature = helpers.sign(options, args) @@ -134,8 +137,10 @@ exports.app = function(config){ var args = { "method": "GET", "url": url, - "encoding": null + "encoding": null, } + + if (headers) args.headers = headers return request(args, function(e, r, b) { if (e) {