modify
This commit is contained in:
@@ -224,12 +224,9 @@ class Response extends HttpService
|
|||||||
}
|
}
|
||||||
$this->setCookies($response);
|
$this->setCookies($response);
|
||||||
defer(fn() => $this->headers = []);
|
defer(fn() => $this->headers = []);
|
||||||
|
if (!isset($response->header['Content-Type'])) {
|
||||||
var_dump($response);
|
$response->header('Content-Type', 'application/json;charset=utf-8');
|
||||||
|
}
|
||||||
// $response->header['']
|
|
||||||
//
|
|
||||||
// $response->header('Content-Type', $this->getContentType());
|
|
||||||
$response->header('Run-Time', $this->getRuntime());
|
$response->header('Run-Time', $this->getRuntime());
|
||||||
foreach ($this->headers as $key => $header) {
|
foreach ($this->headers as $key => $header) {
|
||||||
$response->header($key, $header);
|
$response->header($key, $header);
|
||||||
|
|||||||
Reference in New Issue
Block a user