Skip to content

Commit

Permalink
fix alias for mime-type being wrongly lowercased before comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
dotnetCarpenter committed May 11, 2015
1 parent 3a13400 commit 303ea14
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/ecstatic/opts.js
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/content-type.js
Expand Up @@ -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'
})
);

Expand Down

0 comments on commit 303ea14

Please sign in to comment.