From 0902d43244db09e71f54d81d4bdc8655ffe665c7 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Wed, 19 Aug 2020 19:49:56 +0300 Subject: [PATCH] Added missing tap() --- src/HttpApi/Controllers/Controller.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/HttpApi/Controllers/Controller.php b/src/HttpApi/Controllers/Controller.php index 437accc..5a030ef 100644 --- a/src/HttpApi/Controllers/Controller.php +++ b/src/HttpApi/Controllers/Controller.php @@ -132,9 +132,7 @@ abstract class Controller implements HttpServerInterface 'error' => $exception->getMessage(), ])); - $connection->send(\GuzzleHttp\Psr7\str($response)); - - $connection->close(); + tap($connection)->send(\GuzzleHttp\Psr7\str($response))->close(); } /**