modify
This commit is contained in:
@@ -173,9 +173,7 @@ class Response extends HttpService
|
|||||||
public function configure(SResponse $response = null): static
|
public function configure(SResponse $response = null): static
|
||||||
{
|
{
|
||||||
$response->setStatusCode($this->statusCode);
|
$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());
|
$response->header('Run-Time', $this->getRuntime());
|
||||||
if (!empty($this->headers)) {
|
if (!empty($this->headers)) {
|
||||||
foreach ($this->headers as $name => $header) {
|
foreach ($this->headers as $name => $header) {
|
||||||
|
|||||||
Reference in New Issue
Block a user