mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-22 18:16:54 +08:00
fix check reply
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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?;
|
||||
|
||||
Reference in New Issue
Block a user