mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
committed by
GitHub
parent
a8daf02610
commit
d3cec0ec72
@@ -123,11 +123,6 @@ class AccountManager extends Interceptor {
|
|||||||
}
|
}
|
||||||
return handler.next(options);
|
return handler.next(options);
|
||||||
} else {
|
} else {
|
||||||
if (account is AnonymousAccount) {
|
|
||||||
options.headers[HttpHeaders.cookieHeader] = '';
|
|
||||||
handler.next(options);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
account.cookieJar.loadForRequest(options.uri).then((cookies) {
|
account.cookieJar.loadForRequest(options.uri).then((cookies) {
|
||||||
final previousCookies =
|
final previousCookies =
|
||||||
options.headers[HttpHeaders.cookieHeader] as String?;
|
options.headers[HttpHeaders.cookieHeader] as String?;
|
||||||
|
|||||||
Reference in New Issue
Block a user