mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-21 20:12:00 +00:00
fix #234
This commit is contained in:
parent
5a4de638b4
commit
9a096db785
1 changed files with 1 additions and 3 deletions
|
|
@ -14,10 +14,8 @@ Map<String, String> headers(HeadersRef ref,
|
||||||
Map<String, String> headers = {};
|
Map<String, String> headers = {};
|
||||||
if (mSource.headers?.isNotEmpty ?? false) {
|
if (mSource.headers?.isNotEmpty ?? false) {
|
||||||
headers = (jsonDecode(mSource.headers!) as Map).toMapStringString!;
|
headers = (jsonDecode(mSource.headers!) as Map).toMapStringString!;
|
||||||
} else {
|
|
||||||
headers = getSourceHeaders(mSource);
|
|
||||||
}
|
}
|
||||||
|
headers.addAll(getSourceHeaders(mSource));
|
||||||
final cookies = MClient.getCookiesPref(mSource.baseUrl!);
|
final cookies = MClient.getCookiesPref(mSource.baseUrl!);
|
||||||
headers.addAll(cookies);
|
headers.addAll(cookies);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue