make middleware case-insensitive to accept header

@sheavalentine-mdsol @brutski Please review and merge. Bug fix found in SQA. @jlo188 can I now qualify as an honorary SQA member for finding a bug testing an edge case?