From 56bf98daac3706a3ac3857892149f37451435ddd Mon Sep 17 00:00:00 2001 From: John Crepezzi Date: Tue, 22 Nov 2011 20:01:09 -0500 Subject: [PATCH] More robots.txt work --- lib/static_handler.js | 1 + static/index.html | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/static_handler.js b/lib/static_handler.js index a8af060..cd50d13 100644 --- a/lib/static_handler.js +++ b/lib/static_handler.js @@ -27,6 +27,7 @@ StaticHandler.contentTypeFor = function(ext) { else if (ext == '.css') return 'text/css'; else if (ext == '.html') return 'text/html'; else if (ext == '.ico') return 'image/ico'; + else if (ext == '.txt') return 'text/plain'; else { winston.error('unable to determine content type for static asset with extension: ' + ext); return 'text/plain'; diff --git a/static/index.html b/static/index.html index 0cc6796..5817aa3 100644 --- a/static/index.html +++ b/static/index.html @@ -11,6 +11,8 @@ + +