Upgrade to 3.4.4

This commit is contained in:
Bastian Allgeier
2020-10-06 10:23:02 +02:00
parent c091f04115
commit 0b80361a79
53 changed files with 976 additions and 83 deletions

View File

@@ -1079,10 +1079,15 @@ class App
// when the page has been found
if ($page) {
try {
return $this
->response()
->body($page->render([], $extension))
->type($extension);
$response = $this->response();
// attach a MIME type based on the representation
// only if no custom MIME type was set
if ($response->type() === null) {
$response->type($extension);
}
return $response->body($page->render([], $extension));
} catch (NotFoundException $e) {
return null;
}