handle headers in a case-insensitive way