Enhanced Content-Type detection

Headers should be case-insensitive