Better header check for application/json