On Fri Oct 3 14:44:52 2025 +0000, Gabriel Ivăncescu wrote:
Nevermind, I can reproduce this on my VM, turns out it was using cached response somehow. Windows seems to fail the `send` (sadly it's hard to have it not error out on `open` mucking around with hacked tests).
Unfortunately it looks like the page at [http://test.winehq.org/tests/cors.html%5D(http://test.winehq.org/tests/cors....) was broken at some point, IIRC it was fine when I initially wrote the tests for Proton. It doesn't serve neither the `Access-Control-Allow-Origin: *` nor the `Content-Type: text/plain` response headers, so it's not being tested (and it breaks native), it actually reports `text/html`.
Unfortunately, this means the current content type might not be enough since we don't even test it with a "wrong" content type. When this is fixed, is there some way to forcefully use urlmon's sniffing over the response header? (basically, ignore the response header and still sniff anyway)