make middleware case-insensitive to accept header
Merge pull request #135 from mdsol/feature/fix_middleware_case_sensitivity

make middleware case-insensitive to accept header