From 1debf8dffabc2328b6bfb156cfc2f8495287439c Mon Sep 17 00:00:00 2001 From: tgpethan Date: Thu, 21 May 2020 16:00:22 +0100 Subject: [PATCH] Use header instead of query --- EUS.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EUS.js b/EUS.js index 6f49c80..cbcf544 100644 --- a/EUS.js +++ b/EUS.js @@ -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();