updated detecting accept header name to ignore case