mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-14 08:26:22 +00:00
lowercased headers
This commit is contained in:
parent
0483684de5
commit
512e9f46eb
@ -29,7 +29,7 @@ uploadsController.upload = function(req, res, next){
|
|||||||
let album = req.headers.album
|
let album = req.headers.album
|
||||||
|
|
||||||
if(album !== undefined)
|
if(album !== undefined)
|
||||||
if(req.headers.adminAuth !== config.adminToken)
|
if(req.headers.adminauth !== config.adminToken)
|
||||||
return res.status(401).send('not-authorized')
|
return res.status(401).send('not-authorized')
|
||||||
|
|
||||||
upload(req, res, function (err) {
|
upload(req, res, function (err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user