Ignore 401 Unauthorized and 403 Forbidden, site is still online.

pull/183/head
Ryan J 2015-02-27 10:32:16 -05:00
parent 1123603f64
commit dcabf77380
1 changed files with 2 additions and 1 deletions

View File

@ -198,7 +198,8 @@ class StatusUpdater {
$msg = $code_matches[2][0];
// All status codes starting with a 4 or higher mean trouble!
if(substr($code, 0, 1) >= '4') {
// Ignore 401 Unauthorized and 403 Forbidden, site is still online.
if(substr($code, 0, 1) >= '4' && $code != '401' && $code != '403') {
$this->error = $code . ' ' . $msg;
$result = false;
} else {