Make Response even more compatible ..

This commit is contained in:
Philipp Holzer 2022-01-03 20:18:43 +01:00
commit 35a2fd45af
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
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;