fix wrong response content type

This commit is contained in:
Yuri Kuznetsov
2020-05-15 15:40:21 +03:00
parent b73123c137
commit bcc3cfd143

View File

@@ -260,6 +260,9 @@ class Application
$route = $slim->router()->getCurrentRoute();
$conditions = $route->getConditions();
$response = $slim->response();
$response->headers->set('Content-Type', 'application/json');
if (isset($conditions['useController']) && $conditions['useController'] == false) {
return;
}