laravel/laravel — pull request #387 by richthegeek (2012-03-05 19:09:58+00:00)
Title: Remove case-sensitivity from outgoing request headers

Headers are not case sensitive (http://stackoverflow.com/questions/5258977/are-http-headers-case-sensitive) but Laravel treats them as such.

This causes confusion when setting a header such as "Content-Type", but accidentally/unknowingly setting it as "Content-type". The header is forgotten in the overwrite.

This pull request fixes this issue, although it still leaves a minor hole for errors. It might be an idea to either use an Array interface for the headers or set them to private and use __get, __set for retrieving them in a case-insensitive manner.