Improved streams detection

pull/14166/head
Michael 2024-05-16 15:26:46 +00:00
parent 1f12d1e668
commit 846addf7b3
1 changed files with 3 additions and 0 deletions

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;
}