This commit is contained in:
2021-06-08 11:50:54 +08:00
parent f7fb56fc06
commit 6d49e73ec2
+1 -1
View File
@@ -159,6 +159,7 @@ class Response extends HttpService
$sendData = $this->parseData($context);
$response = Context::getContext('response');
var_dump($response);
if ($response instanceof SResponse) {
$this->sendData($response, $sendData, $statusCode);
} else {
@@ -244,7 +245,6 @@ class Response extends HttpService
$response->header('Content-Type', $this->getContentType());
$response->header('Run-Time', $this->getRuntime());
var_dump($this->headers);
if (empty($this->headers) || !is_array($this->headers)) {
return $response;
}