Fix #547 by case-insensitively finding the header name

Fixes #547

- Added a unit test to ensure an existing `"content-type"` header prevents a `"Content-Type"` header from being inserted.
- Added a helper function `getHeader` used by both the `send` and `getResponseHeader` functions to find the name of a header, ignoring case.