MAPG-180 don't echo void

This commit is contained in:
Bence Pőcze 2020-06-27 14:26:19 +02:00
parent 38a427416c
commit 2a3f891aa0
Signed by: bence
GPG Key ID: AA52B11A3269D1C1

View File

@ -36,7 +36,7 @@ if ($match !== null) {
if ($response instanceof MapGuesser\Interfaces\Response\IContent) { if ($response instanceof MapGuesser\Interfaces\Response\IContent) {
header('Content-Type: ' . $response->getContentType() . '; charset=UTF-8'); header('Content-Type: ' . $response->getContentType() . '; charset=UTF-8');
echo $response->render(); $response->render();
return; return;
} elseif ($response instanceof MapGuesser\Interfaces\Response\IRedirect) { } elseif ($response instanceof MapGuesser\Interfaces\Response\IRedirect) {
@ -49,4 +49,4 @@ if ($match !== null) {
$content = new MapGuesser\Response\HtmlContent('error/404'); $content = new MapGuesser\Response\HtmlContent('error/404');
header('Content-Type: text/html; charset=UTF-8', true, 404); header('Content-Type: text/html; charset=UTF-8', true, 404);
echo $content->render(); $content->render();