fix check reply

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-30 23:27:17 +08:00
parent a260b1640a
commit c2c8a5166b
3 changed files with 27 additions and 26 deletions

View File

@@ -126,6 +126,11 @@ class AccountManager extends Interceptor {
}
return handler.next(options);
} else {
if (account is AnonymousAccount && options.extra['checkReply'] == true) {
options.headers[HttpHeaders.cookieHeader] = '';
handler.next(options);
return;
}
account.cookieJar.loadForRequest(options.uri).then((cookies) {
final previousCookies =
options.headers[HttpHeaders.cookieHeader] as String?;