From e5651fcb76b9df5d89f87e0c20ce3f88ce0f19ad Mon Sep 17 00:00:00 2001 From: malik Date: Wed, 3 Jul 2024 15:03:48 +0200 Subject: [PATCH] fix loginCookie not being updated in jsonRequestOptions --- src/MediaWiki.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MediaWiki.ts b/src/MediaWiki.ts index 30defed5..75351045 100644 --- a/src/MediaWiki.ts +++ b/src/MediaWiki.ts @@ -289,6 +289,7 @@ class MediaWiki { } downloader.loginCookie = resp.headers['set-cookie'].join(';') + downloader.jsonRequestOptions.headers.cookie = downloader.loginCookie }) .catch((err) => { throw err