diff --git a/example/upload-amazon.js b/example/upload-amazon.js index 2cdae8e..96bd035 100644 --- a/example/upload-amazon.js +++ b/example/upload-amazon.js @@ -68,7 +68,7 @@ app.get('/download/:container', function (req, res, next) { }); app.get('/download/:container/:file', function (req, res, next) { - handler.download(req, res, function (err, result) { + handler.download(req.params.container, req.params.file, res, function (err, result) { if (err) { res.send(500, err); } diff --git a/example/upload.js b/example/upload.js index 105c038..70183ed 100644 --- a/example/upload.js +++ b/example/upload.js @@ -67,7 +67,7 @@ app.get('/download/:container', function (req, res, next) { }); app.get('/download/:container/:file', function (req, res, next) { - handler.download(req, res, function (err, result) { + handler.download(req.params.container, req.params.file, res, function (err, result) { if (err) { res.send(500, err); }