Various fixed

This commit is contained in:
killer069
2021-10-08 17:49:53 +05:30
parent b36364da76
commit 5c64bdd0b2
3 changed files with 18 additions and 9 deletions

View File

@@ -184,6 +184,7 @@ export function authorization(): void {
let cookie: Object = {};
cook.split(';').forEach((x) => {
let [ key, value ] = x.split('=')
if(!value) return;
key = key.trim()
value = value.trim()
Object.assign(cookie, { [key] : value })