Change the way the JWT ist sent to securefile

This commit is contained in:
Fabian Stamm 2024-06-22 16:44:18 +02:00
parent 933ecc050a
commit da315034e4
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@hibas123/secure-file-wrapper",
"version": "2.5.1",
"version": "2.5.2",
"main": "lib/index.js",
"author": "Fabian Stamm <dev@fabianstamm.de>",
"license": "MIT",

View File

@ -127,7 +127,6 @@ export default class SecureFileWrapper {
await this.getJWT();
}
query.jwt = this.jwt;
let query_str = "?";
let first = true;
for (let key in query) {
@ -136,8 +135,9 @@ export default class SecureFileWrapper {
first = false;
}
var headers = {
"pragme": "no-cache",
"cache-control": "no-cache"
"pragma": "no-cache",
"cache-control": "no-cache",
"x-jwt": this.jwt
};
if (body) {