Explorar o código

lowercased headers

Pitu %!s(int64=7) %!d(string=hai) anos
pai
achega
512e9f46eb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/uploadController.js

+ 1 - 1
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) {