vjudge: codeforces: fix login check

This commit is contained in:
undefined committed 2023-04-08 01:50:33 +08:00
1 parent fc0704c53f
commit 9f1169b3e0
4 files changed
+17 -13

No files matched your search

+3 -2
View File
@@ -33,10 +33,11 @@ export class BasicFetcher {
}
async html(url: string) {
const { text: html } = await this.get(url);
const { text: html, headers } = await this.get(url);
const $dom = new JSDOM(html);
$dom.window.html = html;
return $dom.window as DOMWindow & { html: string };
$dom.window.headers = headers;
return $dom.window as DOMWindow & { html: string, headers: any };
}
post(url: string) {