Skip to content

Commit

Permalink
Merge pull request #155 from WORMSS/patch-1
Browse files Browse the repository at this point in the history
debug fix for #117
  • Loading branch information
broofa authored May 10, 2017
2 parents 9515cda + 2f1f6a0 commit 89d499e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mime.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ Mime.prototype.define = function (map) {
for (var type in map) {
var exts = map[type];
for (var i = 0; i < exts.length; i++) {
if (process.env.DEBUG_MIME && this.types[exts]) {
console.warn(this._loading.replace(/.*\//, ''), 'changes "' + exts[i] + '" extension type from ' +
this.types[exts] + ' to ' + type);
if (process.env.DEBUG_MIME && this.types[exts[i]]) {
console.warn((this._loading || "define()").replace(/.*\//, ''), 'changes "' + exts[i] + '" extension type from ' +
this.types[exts[i]] + ' to ' + type);
}

this.types[exts[i]] = type;
Expand Down

0 comments on commit 89d499e

Please sign in to comment.