From 303ea14970f03aaa15a992c89dca681738832702 Mon Sep 17 00:00:00 2001 From: dotnetcarpenter Date: Tue, 12 May 2015 00:33:52 +0200 Subject: [PATCH] fix alias for mime-type being wrongly lowercased before comparison --- lib/ecstatic/opts.js | 1 - test/content-type.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ecstatic/opts.js b/lib/ecstatic/opts.js index b9738df..77d78a8 100644 --- a/lib/ecstatic/opts.js +++ b/lib/ecstatic/opts.js @@ -119,7 +119,6 @@ module.exports = function (opts) { 'mime-Type', 'mime-Types' ].some(function (k) { - k = k.toLowerCase(); if (isDeclared(k)) { mimeTypes = opts[k]; return true; diff --git a/test/content-type.js b/test/content-type.js index ea7af6c..4dafc89 100644 --- a/test/content-type.js +++ b/test/content-type.js @@ -84,7 +84,7 @@ test('throws when custom contentType .types file does not exist', function(t) { t.throws( setup.bind(null, { root: __dirname + '/public/', - 'mime-types': 'this_file_does_not_exist.types' + mimeTypes: 'this_file_does_not_exist.types' }) );