I started using the node.js http-server module instead of the python server.

It has the proper wasm mime type, and also supports other HTTP features the 
python http server doesn't support (for instance range-requests):

> npm install -g http-server
> http-server
Starting up http-server, serving ./
Available on:
  http://127.0.0.1:8080
  http://192.168.44.44:8080
Hit CTRL-C to stop the server

Cheer,
-Floh.

On Saturday, 20 July 2019 02:06:45 UTC+2, キャロウ マーク wrote:
>
> I am attempting to test my app using python -m SimpleHTTPServer. I see the 
> following in the browser console:
>
> wasm streaming compile failed: TypeError: Response has unsupported MIME 
> type
>
>
> How can I get SimpleHTTPServer to serve the wasm file with the correct 
> mime type?
>
> Regards
>
>     -Mark
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/5ef91b1b-50d9-42b4-863b-ee09c8726bf7%40googlegroups.com.

Reply via email to