1
0
Fork 0
mirror of synced 2024-10-03 02:27:06 +13:00

Add application/json as a known file type

This commit is contained in:
Andrew Kingston 2021-07-08 12:55:51 +01:00
parent 9440e4a5bf
commit a7a081da8c

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