diff options
| author | Pitu <[email protected]> | 2017-01-18 03:40:16 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2017-01-18 03:40:16 -0300 |
| commit | 512e9f46ebc07732352a3ac623b2fd2a4c603b81 (patch) | |
| tree | 658a7fcad4e87c7c9229fc4d1cd70982e2fcf42b | |
| parent | removed debug messages (diff) | |
| download | host.fuwn.me-512e9f46ebc07732352a3ac623b2fd2a4c603b81.tar.xz host.fuwn.me-512e9f46ebc07732352a3ac623b2fd2a4c603b81.zip | |
lowercased headers
| -rw-r--r-- | controllers/uploadController.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controllers/uploadController.js b/controllers/uploadController.js index 97e7cb5..2828a19 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -29,7 +29,7 @@ uploadsController.upload = function(req, res, next){ let album = req.headers.album if(album !== undefined) - if(req.headers.adminAuth !== config.adminToken) + if(req.headers.adminauth !== config.adminToken) return res.status(401).send('not-authorized') upload(req, res, function (err) { |