mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:50:11 +00:00
Use a more specific "accept" value
This commit is contained in:
parent
28e3eee91b
commit
94b7c1fc77
2 changed files with 2 additions and 3 deletions
|
@ -834,8 +834,7 @@ class Probe
|
|||
|
||||
public static function pollZot($url, $data)
|
||||
{
|
||||
// @todo Check if this endpoint might be queried via a POST
|
||||
$curlResult = DI::httpClient()->get($url, [HttpClientOptions::ACCEPT_CONTENT => HttpClient::ACCEPT_DEFAULT]);
|
||||
$curlResult = DI::httpClient()->get($url, [HttpClientOptions::ACCEPT_CONTENT => HttpClient::ACCEPT_JSON]);
|
||||
if ($curlResult->isTimeout()) {
|
||||
return $data;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue