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 50a57c9 commit 91c89e5Copy full SHA for 91c89e5
src/Server.php
@@ -216,10 +216,9 @@ public function onHandShake($request, $response): void
216
} finally {
217
isset($fd) && $this->getSender()->setResponse($fd, null);
218
// Send the Response to client.
219
- if (! isset($psr7Response) || ! $psr7Response instanceof Psr7Response) {
220
- return;
+ if (isset($psr7Response) && $psr7Response instanceof ResponseInterface) {
+ $this->responseEmitter->emit($psr7Response, $response, true);
221
}
222
- $this->responseEmitter->emit($psr7Response, $response, true);
223
224
225
0 commit comments