mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
core: use problem.md for export
This commit is contained in:
1 parent
69f84b4a28
commit
3e517aa840
6 files changed
+12
-17
No files matched your search
@@ -73,7 +73,7 @@ export default class CodeforcesProvider implements IBasicProvider {
|
||||
this.cookie = header['set-cookie'];
|
||||
}
|
||||
const $dom = new JSDOM(html);
|
||||
if ($dom.window.document.body.children.length < 2 && html.length < 1000) {
|
||||
if ($dom.window.document.body.children.length < 2 && html.length < 512) {
|
||||
throw new Error($dom.window.document.body.textContent);
|
||||
}
|
||||
return $dom.window.document.querySelector('meta[name="X-Csrf-Token"]').getAttribute('content');
|
||||
|
||||
Reference in new issue
Block a user