From: Michael Date: Tue, 1 Oct 2019 12:41:49 +0000 (+0000) Subject: Don't send blank pictures on error, fail instead. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=18807ae21d3f18e187a524ea2dfb12830feb8ca3;hp=-c;p=friendica.git Don't send blank pictures on error, fail instead. --- 18807ae21d3f18e187a524ea2dfb12830feb8ca3 diff --git a/src/Module/Proxy.php b/src/Module/Proxy.php index 75a1142af6..6b40a498a0 100644 --- a/src/Module/Proxy.php +++ b/src/Module/Proxy.php @@ -287,14 +287,13 @@ class Proxy extends BaseModule } /** - * @brief Output a blank image, without cache headers, in case of errors + * In case of an error just stop. We don't return content to avoid caching problems * + * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ private static function responseError() { - header('Content-type: image/png'); - echo file_get_contents('images/blank.png'); - exit(); + throw new \Friendica\Network\HTTPException\InternalServerErrorException(); } /**