Use header instead of query

This commit is contained in:
tgpethan 2020-05-21 16:00:22 +01:00
parent 81047289b8
commit 1debf8dffa

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();