mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 12:42:34 +00:00
fix(Search): Indexer would not open when headers map was null
This commit is contained in:
@@ -18,7 +18,7 @@ class NewznabAPI {
|
||||
baseUrl: '${indexer.host}/api',
|
||||
headers: {
|
||||
'User-Agent': _USER_AGENT,
|
||||
...indexer.headers,
|
||||
if (indexer.headers?.isNotEmpty ?? false) ...indexer.headers,
|
||||
},
|
||||
queryParameters: {
|
||||
if (indexer.apiKey != '') 'apikey': indexer.apiKey,
|
||||
|
||||
Reference in New Issue
Block a user