mirror of
https://github.com/friendica/friendica
synced 2025-04-22 07:50:11 +00:00
Make Response even more compatible ..
This commit is contained in:
parent
37f850377e
commit
35a2fd45af
2 changed files with 13 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue