From ec6e87210bca85fb8902a501231a37e8494cd771 Mon Sep 17 00:00:00 2001 From: Matt Andrews Date: Fri, 22 May 2015 11:47:46 +0100 Subject: [PATCH] JASON! --- lib/determine-content-type.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/determine-content-type.js b/lib/determine-content-type.js index 7b593220..2b86562c 100644 --- a/lib/determine-content-type.js +++ b/lib/determine-content-type.js @@ -6,6 +6,8 @@ module.exports = function(name) { switch(extname(name).substring(1)) { default: throw new Error("ContentType undetermined for " + name); + case 'json': + return 'application/json'; case 'js': return 'text/javascript'; case 'css':