mirror of
https://github.com/friendica/friendica
synced 2024-12-24 16:40:15 +00:00
Merge pull request #8398 from annando/issue-8383-2
Issue 8383 (again): Finally fixes the double scheme problem
This commit is contained in:
commit
280c508599
1 changed files with 5 additions and 1 deletions
|
@ -161,7 +161,11 @@ class Probe
|
||||||
if ($curlResult->isSuccess()) {
|
if ($curlResult->isSuccess()) {
|
||||||
$xml = $curlResult->getBody();
|
$xml = $curlResult->getBody();
|
||||||
$xrd = XML::parseString($xml, false);
|
$xrd = XML::parseString($xml, false);
|
||||||
|
if (!empty($url)) {
|
||||||
$host_url = 'https://' . $host;
|
$host_url = 'https://' . $host;
|
||||||
|
} else {
|
||||||
|
$host_url = $host;
|
||||||
|
}
|
||||||
} elseif ($curlResult->isTimeout()) {
|
} elseif ($curlResult->isTimeout()) {
|
||||||
Logger::info('Probing timeout', ['url' => $ssl_url], Logger::DEBUG);
|
Logger::info('Probing timeout', ['url' => $ssl_url], Logger::DEBUG);
|
||||||
self::$istimeout = true;
|
self::$istimeout = true;
|
||||||
|
|
Loading…
Reference in a new issue