From d0dffac0377a11fba2d3d4aedbc71f5d87a0b8c2 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 17 Sep 2012 08:39:46 -0400 Subject: [PATCH] minor changes --- server.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/server.js b/server.js index e63a3d63..5f96b095 100644 --- a/server.js +++ b/server.js @@ -203,26 +203,22 @@ CloudServer.generateHeaders = function(pName, pGzip){ */ var lExt = CloudFunc.getExtension(pName); - console.log(lExt); - lType = CloudServer.Extensions[lExt] || 'text/plain'; - console.log(lType); - if(lExt === '.appcache') lCacheControl = 1; + + lType = CloudServer.Extensions[lExt] || 'text/plain'; + if(lType.indexOf('img') < 0) + lContentEncoding = '; charset=UTF-8'; var lQuery = CloudServer.Queries[pName]; if(lQuery){ if(lQuery === 'download') lType = 'application/octet-stream'; - console.log(pName + lQuery); } if(!lCacheControl) - lCacheControl = 31337 * 21; - - if(lType.indexOf('img') < 0) - lContentEncoding = '; charset=UTF-8'; + lCacheControl = 31337 * 21; return { /* if type of file any, but img -