On Thu Jul 7 15:18:57 2022 +0000, Gabriel Iv��ncescu wrote:
urlmon detects the MIME type from the content (parsing it), but the content type set in the header should take precedence over that. You can see this in the next commit's tests which will simply fail without this.
Those tests are specific to XHR, but your code changes the general case. Should we essentially ignore all MIME verification in all cases?
BTW, there is PI_MIMEVERIFICATION that controls that on urlmon side, although I don't see an easy way to utilize that in MSHTML without using CreateBinding() directly.