Use header instead of query
This commit is contained in:
parent
81047289b8
commit
1debf8dffa
1 changed files with 1 additions and 1 deletions
2
EUS.js
2
EUS.js
|
@ -177,7 +177,7 @@ module.exports = {
|
||||||
// Get time at the start of upload
|
// Get time at the start of upload
|
||||||
|
|
||||||
if (useUploadKey) {
|
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();
|
d = new Date(); startTime = d.getTime();
|
||||||
|
|
Loading…
Reference in a new issue