Merge pull request #14166 from annando/streams

Improved streams detection
This commit is contained in:
Tobias Diekershoff 2024-05-16 18:44:33 +02:00 committed by GitHub
commit bda829665e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1589,6 +1589,9 @@ class GServer
$name = 'nomad';
$curlResult = DI::httpClient()->get($url . '/manifest', 'application/manifest+json', [HttpClientOptions::REQUEST => HttpClientRequest::SERVERINFO]);
if (!$curlResult->isSuccess() || ($curlResult->getBodyString() == '')) {
if ($curlResult->getReturnCode() == 418) {
$name = 'streams';
}
return $name;
}