Commit 23deeab4 by Qiang Xue

Merge branch 'master' of github.com:yiisoft/yii2

parents 01b6a7cf 194d5a86
...@@ -289,6 +289,7 @@ class Response extends \yii\base\Response ...@@ -289,6 +289,7 @@ class Response extends \yii\base\Response
if ($this->_headers) { if ($this->_headers) {
$headers = $this->getHeaders(); $headers = $this->getHeaders();
foreach ($headers as $name => $values) { foreach ($headers as $name => $values) {
$name = str_replace(' ', '-', ucwords(str_replace('-', ' ', $name)));
foreach ($values as $value) { foreach ($values as $value) {
header("$name: $value", false); header("$name: $value", false);
} }
......
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