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 authored and kelson42 committed Jul 9, 2024
1 parent 7f8ebd2 commit e5651fc
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

Check warning on line 292 in src/MediaWiki.ts

View check run for this annotation

Codecov / codecov/patch

src/MediaWiki.ts#L292

Added line #L292 was not covered by tests
})
.catch((err) => {
throw err
Expand Down

0 comments on commit e5651fc

Please sign in to comment.