Make Response even more compatible ..

This commit is contained in:
Philipp 2022-01-03 20:18:43 +01:00
parent 37f850377e
commit 35a2fd45af
No known key found for this signature in database
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;