mirror of
https://github.com/friendica/friendica
synced 2025-04-28 01:50:13 +00:00
Remove 'headers' option occurrences and add a warning if used.
This commit is contained in:
parent
c19f1a83ce
commit
a74d88c4ee
4 changed files with 13 additions and 12 deletions
|
@ -1639,7 +1639,7 @@ class GServer
|
|||
if (!empty($accesstoken)) {
|
||||
$api = 'https://instances.social/api/1.0/instances/list?count=0';
|
||||
$header = ['Authorization: Bearer '.$accesstoken];
|
||||
$curlResult = DI::httpRequest()->get($api, ['headers' => $header]);
|
||||
$curlResult = DI::httpRequest()->get($api, ['header' => $header]);
|
||||
|
||||
if ($curlResult->isSuccess()) {
|
||||
$servers = json_decode($curlResult->getBody(), true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue