Fixed content-type check