Skip to content

Commit

Permalink
support custom request http headers in GET /files.
Browse files Browse the repository at this point in the history
  • Loading branch information
acg committed Mar 19, 2015
1 parent 992ce82 commit 3830998
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/dbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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) {
Expand Down

0 comments on commit 3830998

Please sign in to comment.