mirror of
https://github.com/friendica/friendica
synced 2024-12-23 20:00:16 +00:00
Merge pull request #7686 from annando/noblank
Don't send blank pictures on error, fail instead.
This commit is contained in:
commit
f16bf04f54
1 changed files with 3 additions and 4 deletions
|
@ -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()
|
private static function responseError()
|
||||||
{
|
{
|
||||||
header('Content-type: image/png');
|
throw new \Friendica\Network\HTTPException\InternalServerErrorException();
|
||||||
echo file_get_contents('images/blank.png');
|
|
||||||
exit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue