Skip to content

Commit

Permalink
fix: #352
Browse files Browse the repository at this point in the history
Signed-off-by: bggRGjQaUbCoE <[email protected]>
  • Loading branch information
bggRGjQaUbCoE committed Mar 1, 2025
1 parent 11398ca commit 6c11140
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/http/interceptor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ApiInterceptor extends Interceptor {
options.headers.remove('x-bili-mid');
options.headers.remove('x-bili-aurora-eid');
options.headers.remove('x-bili-aurora-zone');
options.headers.remove('cookie');
options.headers['cookie'] = '';
options.queryParameters.remove('access_key');
options.queryParameters.remove('csrf');
options.queryParameters.remove('csrf_token');
Expand All @@ -44,9 +44,9 @@ class ApiInterceptor extends Interceptor {
}

// app端不需要cookie
if (options.uri.host == 'app.bilibili.com') {
options.headers.remove('cookie');
}
// if (options.uri.host == 'app.bilibili.com') {
// options.headers.remove('cookie');
// }

if (options.extra['clearCookie'] == true) {
onRemoveCookie();
Expand Down

0 comments on commit 6c11140

Please sign in to comment.