This commit is contained in:
2020-09-16 20:43:35 +08:00
parent c7f4f0c764
commit c2eb4413e4
+6
View File
@@ -101,6 +101,12 @@ class Response extends Application
*/
public function addHeader($key, $value)
{
if (
!($this->response instanceof SResponse) ||
!($this->response instanceof S2Response)
) {
return;
}
$this->response->header($key, $value);
}