This commit is contained in:
as2252258@163.com
2021-08-04 02:45:52 +08:00
parent 97c972b545
commit 29403b63b1
+1 -3
View File
@@ -173,9 +173,7 @@ class Response extends HttpService
public function configure(SResponse $response = null): static
{
$response->setStatusCode($this->statusCode);
if (!isset($response->header['Content-Type'])) {
$response->header('Content-Type', $this->getResponseFormat());
}
$response->header('Content-Type', $this->getResponseFormat());
$response->header('Run-Time', $this->getRuntime());
if (!empty($this->headers)) {
foreach ($this->headers as $name => $header) {