Skip to content
Myr

Added mime()

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

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

State

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

Diff stats

3 files+9 added−2 removed

  • tests:+5 added−1 removed
  • other:+4 added−1 removed

3 files+9 added−2 removed

modified:lib/express/spec/mock-routes.js+1 added
modified:lib/express/mime.js+4 added-1 removed
168 unmodified lines
169 'zip' : 'application/zip'170}171172exports.mime = function(path) {173 173 return types[path] || 174 types[extname(path)] || 175 set('default mime type') || 176 'application/octet-stream' 177}
modified:spec/spec.core.mime.js+4 added-1 removed