Merge ../node-fetch-cookies

This commit is contained in:
jkhsjdhjs 2019-07-24 16:40:05 +02:00
commit 5b4105322d
Signed by: jkhsjdhjs
GPG Key ID: BAC6ADBAB7D576CC

View File

@ -27,7 +27,6 @@ export default class Cookie {
[this.name, this.value] = splitted[0].split("="); [this.name, this.value] = splitted[0].split("=");
if(this.value.startsWith("\"") && this.value.endsWith("\"")) if(this.value.startsWith("\"") && this.value.endsWith("\""))
this.value = this.value.slice(1, -1); this.value = this.value.slice(1, -1);
this.value = this.value;
for(let i = 1; i < splitted.length; i++) { for(let i = 1; i < splitted.length; i++) {
let [k, v] = splitted[i].split("="); let [k, v] = splitted[i].split("=");