]> Cypherpunks repositories - gostls13.git/commit
mime: update .mjs MIME type from text/ to application/javascript
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 6 May 2019 23:03:36 +0000 (23:03 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 13 May 2019 17:01:25 +0000 (17:01 +0000)
commitdb2bf154cc06fe67c79164f225592b06660fa02c
treeaf3c777a477f7b7670ef32bcab30a26c18cd98bd
parentc2f7dd182ea54d53897b16bbab231a59e2a29ba0
mime: update .mjs MIME type from text/ to application/javascript

.mjs should be the same MIME type as .js, and RFC 4329 says that
text/javascript is obsolete, even back in 2006:

    https://tools.ietf.org/html/rfc4329#section-7.1

I didn't notice this when I recently reviewed CL 169502.

Also, re-sort it.

Updates #30547

Change-Id: I8ed8ddaf06c8a08b010423ebd071f39ef3a325e5
Reviewed-on: https://go-review.googlesource.com/c/go/+/175459
Reviewed-by: Andrew Bonventre <andybons@golang.org>
Run-TryBot: Andrew Bonventre <andybons@golang.org>
src/mime/type.go