From ce4eae56a4d468631555dc85e0e7ab4bbd0ef45d Mon Sep 17 00:00:00 2001 From: An Long Date: Mon, 7 Oct 2019 23:41:19 +0800 Subject: [PATCH] mime: add .json for builtin --- src/mime/type.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mime/type.go b/src/mime/type.go index 260c535af05..6d2b89e4059 100644 --- a/src/mime/type.go +++ b/src/mime/type.go @@ -65,6 +65,7 @@ var builtinTypesLower = map[string]string{ ".jpeg": "image/jpeg", ".jpg": "image/jpeg", ".js": "text/javascript; charset=utf-8", + ".json": "application/json", ".mjs": "text/javascript; charset=utf-8", ".pdf": "application/pdf", ".png": "image/png",