]> Cypherpunks repositories - gostls13.git/commit
mime: add .json to built-in list of MIME types
authorAn Long <aisk1988@gmail.com>
Fri, 6 Mar 2020 23:31:35 +0000 (23:31 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Sat, 7 Mar 2020 00:35:52 +0000 (00:35 +0000)
commitae3f98c51b2790f6f3a600ff465255417e3d865d
treef29900d89a81674d15ab72b5baa9d9ca2e89c523
parentb00ebeaebcd8d7535ff08163a7907a6a8fe7b703
mime: add .json to built-in list of MIME types

Since json is popular and mime package's builtin type does not contain
it, and some Linux distributions do not contain the '/etc/mime.types' file
with minimal installations.

Change-Id: I933393c82be296ef176206c253f4dd19b6f33bb1
GitHub-Last-Rev: ce4eae56a4d468631555dc85e0e7ab4bbd0ef45d
GitHub-Pull-Request: golang/go#34737
Reviewed-on: https://go-review.googlesource.com/c/go/+/199657
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/mime/type.go