We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a95fe36 commit 79978dbCopy full SHA for 79978db
src/Symfony/Component/HttpFoundation/HeaderBag.php
@@ -46,7 +46,7 @@ public function __toString()
46
$max = max(array_map('strlen', array_keys($headers))) + 1;
47
$content = '';
48
foreach ($headers as $name => $values) {
49
- $name = implode('-', array_map('ucfirst', explode('-', $name)));
+ $name = ucwords($name, '-');
50
foreach ($values as $value) {
51
$content .= sprintf("%-{$max}s %s\r\n", $name.':', $value);
52
}
0 commit comments