mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-19 09:54:07 +08:00
Bug in XML format
This commit is contained in:
@ -771,7 +771,7 @@ class Response extends \yii\base\Response
|
||||
}
|
||||
break;
|
||||
case self::FORMAT_XML:
|
||||
$this->content = Yii::createObject(XmlResponseFormatter::className())->format($this);
|
||||
Yii::createObject(XmlResponseFormatter::className())->format($this);
|
||||
break;
|
||||
default:
|
||||
throw new InvalidConfigException("Unsupported response format: {$this->format}");
|
||||
|
Reference in New Issue
Block a user