Browse Source

normalize header names.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
194d5a86b5
  1. 1
      framework/yii/web/Response.php

1
framework/yii/web/Response.php

@ -289,6 +289,7 @@ class Response extends \yii\base\Response
if ($this->_headers) {
$headers = $this->getHeaders();
foreach ($headers as $name => $values) {
$name = str_replace(' ', '-', ucwords(str_replace('-', ' ', $name)));
foreach ($values as $value) {
header("$name: $value", false);
}

Loading…
Cancel
Save