fix infinite recursion

This commit is contained in:
jkhsjdhjs 2019-11-29 02:40:09 +01:00
parent 4d45de85d0
commit 20c2a996c3
Signed by: jkhsjdhjs
GPG Key ID: BAC6ADBAB7D576CC

View File

@ -17,7 +17,7 @@ export default async function fetch(url, options) {
options.headers.cookie = cookies.slice(0, -2);
}
const result = await fetch(url, options);
const result = await _fetch(url, options);
cookies = result.headers["set-cookie"] || [];
cookies.forEach(c => cookieJar.addCookie(c, url));