This commit is contained in:
2020-09-16 20:33:56 +08:00
parent 3014c26c46
commit f0f60a2978
+1 -11
View File
@@ -101,17 +101,7 @@ class Response extends Application
*/
public function addHeader($key, $value)
{
/** @var Response $response */
if (!($response = Context::getContext('response'))) {
return;
}
if (
!($response->response instanceof SResponse) ||
!($response->response instanceof S2Response)
) {
return;
}
$response->response->header($key, $value);
$this->response->header($key, $value);
}
/**