Fixing broken api content type check