Add application/json as a known file type

This commit is contained in:
Andrew Kingston 2021-07-08 12:55:51 +01:00
parent c1432ee8ec
commit 08578af4ba
1 changed files with 2 additions and 0 deletions

View File

@ -22,11 +22,13 @@ const CONTENT_TYPE_MAP = {
html: "text/html",
css: "text/css",
js: "application/javascript",
json: "application/json",
}
const STRING_CONTENT_TYPES = [
CONTENT_TYPE_MAP.html,
CONTENT_TYPE_MAP.css,
CONTENT_TYPE_MAP.js,
CONTENT_TYPE_MAP.json,
]
// does normal sanitization and then swaps dev apps to apps