Skip to content

Commit

Permalink
@jfhbrook what do you think about the handleError option? Should we n…
Browse files Browse the repository at this point in the history
…ot throw if it is true?
  • Loading branch information
dotnetCarpenter committed May 13, 2015
1 parent 51414b2 commit 1b49d5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ecstatic.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ var ecstatic = module.exports = function (dir, options) {
// Support hashes and .types files in mimeTypes @since 0.8
if (opts.mimeTypes) {
if (typeof opts.mimeTypes === 'string') {
//TODO: should handleError have any effect here?
mime.load(opts.mimeTypes); // will throw if path is wrong as intended
} else if (typeof opts.mimeTypes === 'object') {
mime.define(opts.mimeTypes);
Expand Down

0 comments on commit 1b49d5d

Please sign in to comment.