[issue35403] support application/wasm in mimetypes and http.server

2019-03-30 Thread Martin Panter


Change by Martin Panter :


--
superseder:  -> http.server module sets incorrect mimetype for WebAssembly files

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35403] support application/wasm in mimetypes and http.server

2019-03-30 Thread Martin Panter

Martin Panter  added the comment:

According to Issue 34758, this was already added to 3.8’s “mimetypes”.

--
nosy: +martin.panter
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35403] support application/wasm in mimetypes and http.server

2018-12-11 Thread pmpp


pmpp  added the comment:

Sure, but i was considering the cpython in the browser/webview/electron case 
where python modules are served as .wasm files, i'm about to do it for my port 
and pyodide already does. 
It would make sense to provide the *simplest* environnement for cpython to 
serve its own components.

scientific cpython stack in the browser:
https://github.com/iodide-project/pyodide

python repl in the browser experiment:
http://pmpp.pagesperso-orange.fr/python_em.html

Also i think cpython in the browser could be be already beyond testing and so 
far provides the best sandboxing configuration available around :
"run python in a sandbox, not the opposite" ( quoting Victor Stinner )

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35403] support application/wasm in mimetypes and http.server

2018-12-10 Thread R. David Murray


R. David Murray  added the comment:

We don't generally add a mime type until it is a de-jure or de-facto standard.  
If it is still in testing it is probably too soon to add it.  For testing, you 
can always add it yourself in your code via the api that mimetypes provides.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35403] support application/wasm in mimetypes and http.server

2018-12-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy: +r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35403] support application/wasm in mimetypes and http.server

2018-12-04 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

Python 3.7 is in feature-freeze, so any new features like this will have to be 
3.8 only.

--
nosy: +steven.daprano
versions:  -Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35403] support application/wasm in mimetypes and http.server

2018-12-04 Thread pmpp


New submission from pmpp :

web browsers have recently gained ability to run webassembly code and for that 
a new content type has to be add to web servers for optimal use:

wasm => Content-Type header : application/wasm

spec says it :
https://webassembly.github.io/spec/web-api/index.html#streaming-modules

"Firefox streaming compilation needs Content-Type header set"

cf: https://groups.google.com/forum/#!topic/emscripten-discuss/C7-i1gqWay4

google's filament documentation says:
"Python's simple server [...] does not serve WebAssembly files with the correct 
MIME type."

it would be logical since simple htt server is mostly used for testing software 
to offer support of that new techonology.

--
messages: 331015
nosy: pmpp
priority: normal
severity: normal
status: open
title: support application/wasm in mimetypes and http.server
type: enhancement
versions: Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com