From d82cd47c0107046c17d4809e36ca1137568d7c06 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Wed, 4 Aug 2021 02:46:50 +0800 Subject: [PATCH] modify --- HttpServer/Http/Response.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HttpServer/Http/Response.php b/HttpServer/Http/Response.php index 7754708c..dc042bb5 100644 --- a/HttpServer/Http/Response.php +++ b/HttpServer/Http/Response.php @@ -70,6 +70,7 @@ class Response extends HttpService public function toHtml($content): string { $this->format = self::HTML; + var_dump($this->format); return (string)$content; } @@ -173,6 +174,7 @@ class Response extends HttpService public function configure(SResponse $response = null): static { $response->setStatusCode($this->statusCode); + var_dump($this->getResponseFormat()); $response->header('Content-Type', $this->getResponseFormat()); $response->header('Run-Time', $this->getRuntime()); if (!empty($this->headers)) {