eee
This commit is contained in:
@@ -126,9 +126,6 @@ class OnRequest implements OnRequestInterface
|
|||||||
} catch (Throwable $throwable) {
|
} catch (Throwable $throwable) {
|
||||||
$PsrResponse = $this->exception->emit($throwable, $this->constrictResponse);
|
$PsrResponse = $this->exception->emit($throwable, $this->constrictResponse);
|
||||||
} finally {
|
} finally {
|
||||||
if ($request->getMethod() === 'HEAD') {
|
|
||||||
$PsrResponse->getBody()->write('');
|
|
||||||
}
|
|
||||||
$this->responseEmitter->response($PsrResponse, $response, $PsrRequest);
|
$this->responseEmitter->response($PsrResponse, $response, $PsrRequest);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user