Make Response even more compatible ..

This commit is contained in:
Philipp
2022-01-03 20:18:43 +01:00
parent 37f850377e
commit 35a2fd45af
2 changed files with 13 additions and 13 deletions

View File

@@ -96,6 +96,9 @@ class Response implements ICanCreateResponses
}
switch ($type) {
case static::TYPE_HTML:
$content_type = $content_type ?? 'text/html';
break;
case static::TYPE_JSON:
$content_type = $content_type ?? 'application/json';
break;