1
0
Fork 0

Introduce "accept_header" as specific argument to the http client

This commit is contained in:
Philipp Holzer 2022-04-02 21:16:22 +02:00
commit e299fc67c8
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
35 changed files with 150 additions and 150 deletions

View file

@ -47,7 +47,7 @@ class SearchDirectory
}
}
$x = DI::httpClient()->fetch(Search::getGlobalDirectory() . '/lsearch?p=1&n=500&search=' . urlencode($search), 0, HttpClientAccept::JSON);
$x = DI::httpClient()->fetch(Search::getGlobalDirectory() . '/lsearch?p=1&n=500&search=' . urlencode($search), HttpClientAccept::JSON);
$j = json_decode($x);
if (!empty($j->results)) {