diff --git a/src/Http/Routing/Router.php b/src/Http/Routing/Router.php index 4560309..d1754b8 100644 --- a/src/Http/Routing/Router.php +++ b/src/Http/Routing/Router.php @@ -58,10 +58,12 @@ public function dispatch(ServerRequestInterface $request): ResponseInterface foreach ($routes as $route) { if ($route->matches($path)) { - return $route->execute($this->app, $request, $this->responseFactory->createResponse(200)); + return $route->execute($this->app, $request, $this->responseFactory->createResponse(200) + ->withHeader('Content-Type', 'text/html') + ); } } return $this->responseFactory->createResponse(404); } -} \ No newline at end of file +}