misc/wasm: On WSL, test code works when served over HTTPS / HTTP/2; not with HTTP 1.1 #37095
Labels
arch-wasm
WebAssembly issues
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Uh oh!
There was an error while loading. Please reload this page.
Yes, I'm aware the name of this Issue seems impossible. But it's true.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
Explained in the comments, but the file in the repo is a test file compiled to WASM and being loaded into the browser to help me run the tests. I expect it to run the tests, which it does do when using TLS.
What did you see instead?
When using HTTP 1.1 (aka ListenAndServe, not ListenAndServeTLS) the WASM file fails to load.
Reproduction Info
You can use the repo here with these instructions:
Then open a browser to https://localhost:5100 and see that it works (this is the https version, after all).
Go back and switch which lines are being used to serve the files. Rebuild and serve.
Notes
The text was updated successfully, but these errors were encountered: