Commit b7cac8cb authored by tufengqi's avatar tufengqi

修改system head

parent 97112a6c
...@@ -137,8 +137,7 @@ class ResponseApi ...@@ -137,8 +137,7 @@ class ResponseApi
public static function header($key, $value) public static function header($key, $value)
{ {
if (1 != \Yii::$app->request->get('debug')) { if (1 != \Yii::$app->request->get('debug')) {
\Yii::$app->response->format = Response::FORMAT_RAW; header($key . ': ' . $value);
\Yii::$app->response->headers->add($key, $value);
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment