diff --git a/core/server/middleware.js b/core/server/middleware.js index 73833da61f..96437dfa8a 100644 --- a/core/server/middleware.js +++ b/core/server/middleware.js @@ -4,7 +4,7 @@ var _ = require('underscore'), path = require('path'); function isBlackListedFileType(file) { - var blackListedFileTypes = ['.hbs', '.md', '.txt', '.json'], + var blackListedFileTypes = ['.hbs', '.md', '.json'], ext = path.extname(file); return _.contains(blackListedFileTypes, ext); } diff --git a/core/test/unit/middleware_spec.js b/core/test/unit/middleware_spec.js index 27324ad7a9..597fe770e0 100644 --- a/core/test/unit/middleware_spec.js +++ b/core/test/unit/middleware_spec.js @@ -42,18 +42,6 @@ describe('Middleware', function () { }); }); - it('should call next if txt file type', function (done) { - var req = { - url: 'LICENSE.txt' - }; - - middleware.staticTheme(null)(req, null, function (a) { - should.not.exist(a); - middleware.forwardToExpressStatic.calledOnce.should.be.false; - return done(); - }); - }); - it('should call next if json file type', function (done) { var req = { url: 'sample.json'