Skip to content

Commit

Permalink
fix loginCookie not being updated in jsonRequestOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
malik1004x committed Jul 3, 2024
1 parent 4cfe89b commit fecda07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/MediaWiki.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ class MediaWiki {
}

downloader.loginCookie = resp.headers['set-cookie'].join(';')
downloader.jsonRequestOptions.headers.cookie = downloader.loginCookie
})
.catch((err) => {
throw err
Expand Down

0 comments on commit fecda07

Please sign in to comment.