make middleware case-insensitive to accept header