Fix content type based on accept header