Make upload header handling case-insensitive.
Merge pull request #1575 from lotten/caseSensitiveFix

Make upload header handling case-insensitive.