mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
vjudge: codeforces: fix login check
This commit is contained in:
4 files changed
+17
-13
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user