Bug in XML format

This commit is contained in:
Borro
2013-08-23 11:34:31 -07:00
parent 92a1bef076
commit 9f72973b83

View File

@ -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}");