mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 17:46:28 +08:00
vjudge: luogu: fix login
This commit is contained in:
1 parent
1f585968a4
commit
bc43b2fd4e
3 files changed
+21
-3
No files matched your search
@@ -47,4 +47,9 @@ export class BasicFetcher {
|
||||
if (this.fetchOptions.post?.headers) req = req.set(this.fetchOptions.post.headers);
|
||||
return this.account.proxy ? req.proxy(this.account.proxy) : req;
|
||||
}
|
||||
|
||||
setCookie(cookie: string | string[]) {
|
||||
if (typeof cookie === 'string') this.cookie = [cookie];
|
||||
else this.cookie = cookie;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user