fix headre

This commit is contained in:
2024-07-29 16:07:51 +03:00
parent 200763725e
commit f24ce58b85
4 changed files with 7 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class App
{
$dispatcher = new Dispatcher(App::$collector->getData());
$response = $dispatcher->dispatch($_SERVER['REQUEST_METHOD'], parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
header('Content-Type: ' . App::$responseType);
//header('Content-Type: ' . App::$responseType);
App::$header->set();
echo $response;
}