Add test for #547
Fix #547
Merge pull request #548 from elliottsj/master

Fix #547 by case-insensitively finding the header name