shorten cookie class a bit

This commit is contained in:
jkhsjdhjs 2019-08-15 22:59:28 +02:00
parent e5bf5729d1
commit c9dc1d99ed
Signed by: jkhsjdhjs
GPG Key ID: BAC6ADBAB7D576CC

View File

@ -74,9 +74,8 @@ export default class Cookie {
this.domain = v; this.domain = v;
this.subdomains = true; this.subdomains = true;
} }
else if(k === "path") { else if(k === "path")
this.path = v; this.path = v;
}
else if(k === "samesite") // only relevant for cross site requests, so not for us else if(k === "samesite") // only relevant for cross site requests, so not for us
continue; continue;
else else