From 043c85fa97d8a658e2337830e8e5939d14ff1965 Mon Sep 17 00:00:00 2001 From: kremsy Date: Mon, 17 Feb 2014 14:09:01 +0100 Subject: [PATCH] inform about redircetions --- application/core/Files/AsynchronousFileReader.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/core/Files/AsynchronousFileReader.php b/application/core/Files/AsynchronousFileReader.php index b448e83c..8ae8d980 100644 --- a/application/core/Files/AsynchronousFileReader.php +++ b/application/core/Files/AsynchronousFileReader.php @@ -78,6 +78,10 @@ class AsynchronousFileReader { $error = self::RESPONSE_ERROR; $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 == '') { $error = self::NO_DATA_ERROR; } else {