Skip to content
Myr

Fixed mime.type() due to path.extname() changes

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent f20fd20 · Browse files · 2 files+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−1 removed

  • tests:+2 added−1 removed
  • other:+1 added−0 removed

2 files+3 added−1 removed

modified:lib/express/mime.js+1 added
361 unmodified lines
362 * @api public363 */364365exports.type = function(path) {366 if (path[0] === '.') path = path.substr(1)367 return exports.types[path] || 368 exports.types[extname(path).substr(1)] || 369 set('default mime type') || 370 'application/octet-stream'
1 unmodified line
modified:spec/spec.mime.js+2 added-1 removed