This commit is contained in:
2025-12-18 15:39:44 +08:00
parent 15d54e8ffe
commit 975e7a3cd0
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -74,9 +74,9 @@ class Response implements ResponseInterface
*/
public function __construct()
{
$this->contentType = \config('response.content-type', ContentType::JSON);
$this->headers = \config('response.headers', []);
$this->emmit = \config('response.emmit', SwooleHttpResponseEmitter::class);
$this->contentType = \config('servers.response.content-type', ContentType::JSON);
$this->headers = \config('servers.response.headers', []);
$this->emmit = \config('servers.response.emmit', SwooleHttpResponseEmitter::class);
}
/**