Fix content type header middleware