Commit f3cd7554 by Carsten Brandt

Merge pull request #803 from borro/patch-1

Bug in XML format
parents 92a1bef0 9f72973b
......@@ -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}");
......
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