Use header instead of query

This commit is contained in:
tgpethan 2020-05-21 16:00:22 +01:00
parent 81047289b8
commit 1debf8dffa
1 changed files with 1 additions and 1 deletions

2
EUS.js
View File

@ -177,7 +177,7 @@ module.exports = {
// Get time at the start of upload
if (useUploadKey) {
if (eusConfig["uploadKey"] != req.query["key"]) return res.end("Incorrect key provided for upload");
if (eusConfig["uploadKey"] != req.header("key")) return res.end("Incorrect key provided for upload");
}
d = new Date(); startTime = d.getTime();