inform about redircetions

This commit is contained in:
kremsy 2014-02-17 14:09:01 +01:00 committed by Steffen Schröder
parent dbbb0c2f13
commit 043c85fa97

View File

@ -78,6 +78,10 @@ class AsynchronousFileReader {
$error = self::RESPONSE_ERROR; $error = self::RESPONSE_ERROR;
$result = $this->parseResult($socket); $result = $this->parseResult($socket);
if (intval($socket->header["status"]) > 300 && intval($socket->header["status"]) < 310) {
$this->maniaControl->errorHandler->triggerDebugNotice("HTTP Error, Code:" . $socket->header["status"] . "URL: " . $socket->url);
}
} else if ($socket->streamBuffer == '') { } else if ($socket->streamBuffer == '') {
$error = self::NO_DATA_ERROR; $error = self::NO_DATA_ERROR;
} else { } else {