diff --git a/HttpServer/Http/Response.php b/HttpServer/Http/Response.php index 3182a24b..10744fd3 100644 --- a/HttpServer/Http/Response.php +++ b/HttpServer/Http/Response.php @@ -219,11 +219,14 @@ class Response extends HttpService * @param $sendData * @param $status * @return string + * @throws Exception */ private function sendData($sendData, $status): string { $sendData = $this->setHeaders($status, $sendData); + $this->success(request()->getUri()); + $this->response->end($sendData); $this->response = null; unset($this->response);