We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f199981 commit 7a8d96eCopy full SHA for 7a8d96e
src/AppWrapper.php
@@ -8,6 +8,8 @@
8
use Slim\App;
9
use Slim\Container;
10
use Slim\Exception\Exception as SlimException;
11
+use Slim\Http\Headers;
12
+use Slim\Http\Response;
13
14
/**
15
* Wraps a Slim v3 application object as an implementation of the kernel
@@ -43,7 +45,8 @@ public function __construct(App $app)
43
45
*/
44
46
public function handleRequest(ServerRequestInterface $request)
47
{
- $response = $this->container->get('response');
48
+ $headers = new Headers(['Content-Type': 'text/html']);
49
+ $response = (new Response(200, $headers))->withProtocolVersion('1.1');
50
51
try {
52
$response = $this->app->callMiddlewareStack($request, $response);
0 commit comments