From e853235e82c05bf1077fc21c13b575d00950264c Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Mon, 27 Jan 2014 08:42:29 -0800 Subject: [PATCH] Fix the samples --- example/upload-amazon.js | 2 +- example/upload.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }