From fa3128ca9357f8dbf258b2e0844a48d385bf242b Mon Sep 17 00:00:00 2001 From: Ritchie Martori Date: Thu, 15 Mar 2012 17:02:39 -0700 Subject: [PATCH] static updates --- lib/types/static.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/types/static.js b/lib/types/static.js index db0317f..ffe9d0c 100644 --- a/lib/types/static.js +++ b/lib/types/static.js @@ -12,7 +12,7 @@ var storage = require('../storage') * A middleware for uploading, downloading, and removing files. */ -module.exports = function (req, res, next, end) { +module.exports = function (req, res, next, use) { if(req.method === 'PUT' || req.method === 'POST' || req.method === 'DELETE') { // prevent un-authed writes/deletes if(!req.isRoot) return next({status: 401});