Commit 947a5572 by Qiang Xue

Reverted changeset 595ac6d0

parent 595ac6d0
......@@ -781,7 +781,7 @@ class Response extends \yii\base\Response
$this->content = $this->data;
break;
case self::FORMAT_JSON:
$this->getHeaders()->set('Content-Type', 'application/json; charset=' . $this->charset);
$this->getHeaders()->set('Content-Type', 'application/json');
$this->content = Json::encode($this->data);
break;
case self::FORMAT_JSONP:
......
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