Fix the samples

This commit is contained in:
Raymond Feng 2014-01-27 08:42:29 -08:00
parent 0d09a72242
commit e853235e82
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}