改名
This commit is contained in:
@@ -101,17 +101,7 @@ class Response extends Application
|
|||||||
*/
|
*/
|
||||||
public function addHeader($key, $value)
|
public function addHeader($key, $value)
|
||||||
{
|
{
|
||||||
/** @var Response $response */
|
$this->response->header($key, $value);
|
||||||
if (!($response = Context::getContext('response'))) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (
|
|
||||||
!($response->response instanceof SResponse) ||
|
|
||||||
!($response->response instanceof S2Response)
|
|
||||||
) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$response->response->header($key, $value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user