1
0
mirror of https://github.com/golang/go synced 2024-11-19 10:04:56 -07:00
go/src
Agniva De Sarker b3562658fd net/http: add application/wasm mime type
Although not part of http://mimesniff.spec.whatwg.org,
for WASM streaming compilation to happen, the response
needs to have the application/wasm MIME type
as mentioned here:
https://webassembly.github.io/spec/web-api/index.html#streaming-modules.

And all current browsers prevent streaming compilation
from happening if this MIME type is not present in the response.

The magic number is mentioned here:
https://webassembly.org/docs/binary-encoding

Since we are already adding WASM support, it makes sense
to support this MIME type.

Change-Id: I8dd7b413a8c438a5c23c29d843b42f6da2a20ba4
Reviewed-on: https://go-review.googlesource.com/113396
Reviewed-by: Richard Musiol <neelance@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-06-10 17:04:22 +00:00
..
archive all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
bufio
builtin
bytes bytes: re-slice buffer to its previous length after call to grow() 2018-05-29 19:46:33 +00:00
cmd cmd/link: split pe .text section into .text and .rdata 2018-06-09 07:34:45 +00:00
compress all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
container
context context: add benchmarks for context cancellation 2018-05-29 21:57:30 +00:00
crypto crypto/tls: expand docs on client-side session ticket support 2018-06-07 21:15:41 +00:00
database/sql database/sql: update doc related to per-connection state 2018-06-06 18:18:20 +00:00
debug debug/pe: add IMAGE_FILE_MACHINE_ARM64 2018-06-07 16:17:04 +00:00
encoding encoding/asn1: gofmt 2018-06-07 15:01:06 +00:00
errors
expvar
flag flag: removed the colon after "Usage" in the documentation 2018-06-07 07:00:46 +00:00
fmt
go go/types: extend cycle detection past simple type cycles 2018-06-07 22:04:21 +00:00
hash all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
html all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
image all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
index/suffixarray index/suffixarray: fix a typo mistake in comments 2018-05-29 12:16:51 +00:00
internal internal/cpu: convert CRLF to LF line ending, and some superfulous space 2018-06-07 14:59:49 +00:00
io
log
math all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
mime all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
net net/http: add application/wasm mime type 2018-06-10 17:04:22 +00:00
os os: check setStickyBit error in mkdir 2018-06-05 14:53:18 +00:00
path os: add js/wasm architecture 2018-06-01 05:18:38 +00:00
plugin
reflect reflect: add StructOf test case that gccgo used to fail 2018-06-06 14:08:42 +00:00
regexp all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
runtime runtime: fix pprof livelock on arm 2018-06-08 17:07:53 +00:00
sort all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
strconv strconv: add missing period to godoc comment 2018-06-09 01:26:25 +00:00
strings all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
sync
syscall net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
testing Revert "testing: only compute b.N once when passed -count > 1" 2018-05-31 14:22:44 +00:00
text text/tabwriter: fix BenchmarkPyramid and BenchmarkRagged again 2018-06-04 17:32:17 +00:00
time runtime: don't crash holding locks on racy timer access 2018-06-04 18:33:41 +00:00
unicode all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
unsafe
vendor/golang_org/x net/http: vendor x/net/http/httpproxy, use it in net/http 2018-05-29 21:54:57 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
Make.dist
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc