From 9ec97d8aa28ca6a6fc130fbc2566848819cf2563 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Tue, 12 Jan 2021 22:04:24 +0100 Subject: [PATCH] fix --- lib/Gateway.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Gateway.ts b/lib/Gateway.ts index 4e79e47..78175f3 100644 --- a/lib/Gateway.ts +++ b/lib/Gateway.ts @@ -48,7 +48,7 @@ class GatewayClass { return null; let auth = null; run_regex ( - /(?:^|;)(?[^;=]+)=(?[^;]+)/gu, + /(?:^|;)\s*(?[^;=]+)=(?[^;]+)/gu, req.headers.cookie, (res: RegExpMatchArray) => { if (res.groups?.name === this._options.cookie_name)