Browse Source

Workaround for bad configured servers

pull/1978/head
Michael Vogel 6 years ago
parent
commit
ddc8f069f2
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      include/socgraph.php

+ 5
- 2
include/socgraph.php View File

@ -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)) {
$last_failure = datetime_convert();
$failure = true;
// 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();


Loading…
Cancel
Save