Workaround for bad configured servers

2022.09-rc
Michael Vogel 2015-10-24 20:41:21 +02:00
rodzic 64a5b33e77
commit ddc8f069f2
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -748,8 +748,11 @@ function poco_check_server($server_url, $network = "", $force = false) {
}
if (!$serverret["success"] OR ($serverret["body"] == "") OR (sizeof($xmlobj) == 0) OR !is_object($xmlobj)) {
// Workaround for bad configured servers (known nginx problem)
if ($serverret["debug"]["http_code"] != "403") {
$last_failure = datetime_convert();
$failure = true;
}
} elseif ($network == NETWORK_DIASPORA)
$last_contact = datetime_convert();