mikeal/request — pull request #715 by pastaclub (2013-11-26 14:45:32+00:00)
Title: Request.multipart no longer crashes when header 'Content-type' present

Request.multipart used to crash when options contained a header 'Content-type' which is not purely lowercase. That is because hasHeader is case-insensitive and returns true, then the split method gets applied to undefined and crashes the application.

One could argue that headers should be spelled using only lowercase. However, mixed case headers used to work with a previous version of request, thus I suggest to incorporate this patch to ensure that legacy code does not suddenly crash after updating request.