symfony/symfony — pull request #5662 by gigablah (2012-10-03 15:48:30+00:00)
Title: [HttpFoundation] Re-apply capitalization to response header names upon sending

Bug fix: no
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: [![Build Status](https://secure.travis-ci.org/gigablah/symfony.png)](http://travis-ci.org/gigablah/symfony)
License of the code: MIT
Fixes the following tickets: -
Todo: -

`HeaderBag` normalizes header names when they are set. `HeaderBag::__toString()` re-capitalizes them. However, `Response::sendHeaders()` doesn't. Therefore, custom header names (e.g. X-Sendfile, Vary) are output in lowercase. I've copied the bit of code that re-applies the capitalization into `Response::sendHeaders()`.

More of a cosmetic (and consistency) fix, since HTTP header names are case insensitive.