emmatyping / python-wasm

Build scripts and configuration for building CPython for Emscripten
https://repl.ethanhs.me
679 stars 35 forks source link

https://repl.ethanhs.me/worker/python.wasm is served with wrong content type #50

Closed tiran closed 2 years ago

tiran commented 2 years ago

Firefox refuses to start the demo repl because the wasm file is served with wrong content type:

wasm streaming compile failed: TypeError: WebAssembly: Response has unsupported MIME type 'application/octet-stream' expected 'application/wasm'
emmatyping commented 2 years ago

Huh, it seems nginx didn't have the wasm application type available. I believe it should be fixed now. Let me know if not and I will override that path explicitly!

tiran commented 2 years ago

REPL now works in Firefox. Thanks!

emmatyping commented 2 years ago

Great! FWIW I think it was working for me on nightly, so maybe this behaviour was changed.

I also added credits and a link back to this repo :)