Skip to content
Myr

Merge branch 'master' of git://github.com/gjritter/express

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

authored by visionmedia · committed by visionmedia · parents 9d0d6e4, d520906 · Browse files · 1 file+83 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

1 file+83 added−1 removed

  • other:+83 added−1 removed

1 file+83 added−1 removed

modified:lib/express/mime.js+83 added-1 removed
4 unmodified lines
5 '3gp' : 'video/3gpp',6 'a' : 'application/octet-stream',7 'ai' : 'application/postscript',8 'aif' : 'audio/x-aiff',9 'aifc' : 'audio/x-aiff',10 'aiff' : 'audio/x-aiff',11 'asc' : 'application/pgp-signature',12 'asf' : 'video/x-ms-asf',13 'asm' : 'text/x-asm',
1 unmodified line
15 'atom' : 'application/atom+xml',16 'au' : 'audio/basic',17 'avi' : 'video/x-msvideo',18 'bat' : 'application/x-msdownload',19 'bcpio' : 'application/x-bcpio',20 'bin' : 'application/octet-stream',21 'bmp' : 'image/bmp',22 'bz2' : 'application/x-bzip2',23 'c' : 'text/x-c',24 'cab' : 'application/vnd.ms-cab-compressed',25 'cc' : 'text/x-c',26 'cdf' : 'application/x-netcdf',27 'cgm' : 'image/cgm',28 'chm' : 'application/vnd.ms-htmlhelp',29 'class' : 'application/octet-stream',30 'com' : 'application/x-msdownload',31 'conf' : 'text/plain',32 'cpio' : 'application/x-cpio',33 'cpp' : 'text/x-c',34 'cpt' : 'application/mac-compactpro',35 'crt' : 'application/x-x509-ca-cert',36 'csh' : 'application/x-csh',37 'css' : 'text/css',38 'csv' : 'text/csv',39 'cxx' : 'text/x-c',40 'dcr' : 'application/x-director',41 'deb' : 'application/x-debian-package',42 'der' : 'application/x-x509-ca-cert',43 'diff' : 'text/x-diff',44 'djv' : 'image/vnd.djvu',45 'djvu' : 'image/vnd.djvu',46 'dll' : 'application/x-msdownload',47 'dmg' : 'application/octet-stream',48 'dms' : 'application/octet-stream',49 'doc' : 'application/msword',50 'dot' : 'application/msword',51 'dtd' : 'application/xml-dtd',52 'dv' : 'video/x-dv',53 'dvi' : 'application/x-dvi',54 'dxr' : 'application/x-director',55 'ear' : 'application/java-archive',56 'eml' : 'message/rfc822',57 'eps' : 'application/postscript',58 'etx' : 'text/x-setext',59 'exe' : 'application/x-msdownload',60 'ez' : 'application/andrew-inset',61 'f' : 'text/x-fortran',62 'f77' : 'text/x-fortran',63 'f90' : 'text/x-fortran',64 'flv' : 'video/x-flv',65 'for' : 'text/x-fortran',66 'gem' : 'application/octet-stream',67 'gemspec' : 'text/x-script.ruby',68 'gif' : 'image/gif',69 'gram' : 'application/srgs',70 'grxml' : 'application/srgs+xml',71 'gtar' : 'application/x-gtar',72 'gz' : 'application/x-gzip',73 'h' : 'text/x-c',74 'hdf' : 'application/x-hdf',75 'hh' : 'text/x-c',76 'htm' : 'text/html',77 'html' : 'text/html',78 'hqx' : 'application/mac-binhex40',79 'ice' : 'x-conference/x-cooltalk',80 'ico' : 'image/vnd.microsoft.icon',81 'ics' : 'text/calendar',82 'ief' : 'image/ief',83 'ifb' : 'text/calendar',84 'iges' : 'model/iges',85 'igs' : 'model/iges',86 'iso' : 'application/octet-stream',87 'jar' : 'application/java-archive',88 'java' : 'text/x-java-source',89 'jnlp' : 'application/x-java-jnlp-file',90 'jp2' : 'image/jp2',91 'jpe' : 'image/jpeg',92 'jpeg' : 'image/jpeg',93 'jpg' : 'image/jpeg',94 'js' : 'application/javascript',95 'json' : 'application/json',96 'kar' : 'audio/midi',97 'latex' : 'application/x-latex',98 'lha' : 'application/octet-stream',99 'lzh' : 'application/octet-stream',100 'log' : 'text/plain',101 'm3u' : 'audio/x-mpegurl',102 'm4a' : 'audio/mp4a-latm',103 'm4b' : 'audio/mp4a-latm',104 'm4p' : 'audio/mp4a-latm',105 'm4u' : 'video/vnd.mpegurl',106 'm4v' : 'video/mp4',107 'mac' : 'image/x-macpaint',108 'man' : 'text/troff',109 'mathml' : 'application/mathml+xml',110 'mbox' : 'application/mbox',111 'mdoc' : 'text/troff',112 'me' : 'text/troff',113 'mesh' : 'model/mesh',114 'mid' : 'audio/midi',115 'midi' : 'audio/midi',116 'mif' : 'application/vnd.mif',117 'mime' : 'message/rfc822',118 'mml' : 'application/mathml+xml',119 'mng' : 'video/x-mng',120 'mov' : 'video/quicktime',121 'movie' : 'video/x-sgi-movie',122 'mp2' : 'audio/mpeg',123 'mp3' : 'audio/mpeg',124 'mp4' : 'video/mp4',125 'mp4v' : 'video/mp4',126 'mpe' : 'video/mpeg',127 'mpeg' : 'video/mpeg',128 'mpg' : 'video/mpeg',129 'mpga' : 'audio/mpeg',130 'ms' : 'text/troff',131 'msh' : 'model/mesh',132 'msi' : 'application/x-msdownload',133 'mxu' : 'video/vnd.mpegurl',134 'nc' : 'application/x-netcdf',135 'oda' : 'application/oda',136 'odp' : 'application/vnd.oasis.opendocument.presentation',137 'ods' : 'application/vnd.oasis.opendocument.spreadsheet',138 'odt' : 'application/vnd.oasis.opendocument.text',139 'ogg' : 'application/ogg',140 'p' : 'text/x-pascal',141 'pas' : 'text/x-pascal',142 'pbm' : 'image/x-portable-bitmap',143 'pct' : 'image/pict',144 'pdb' : 'chemical/x-pdb',145 'pdf' : 'application/pdf',146 'pem' : 'application/x-x509-ca-cert',147 'pgm' : 'image/x-portable-graymap',148 'pgn' : 'application/x-chess-pgn',149 'pgp' : 'application/pgp-encrypted',150 'pic' : 'image/pict',151 'pict' : 'image/pict',152 'pkg' : 'application/octet-stream',153 'pl' : 'text/x-script.perl',154 'pm' : 'text/x-script.perl-module',155 'png' : 'image/png',156 'pnm' : 'image/x-portable-anymap',157 'pnt' : 'image/x-macpaint',158 'pntg' : 'image/x-macpaint',159 'ppm' : 'image/x-portable-pixmap',160 'pps' : 'application/vnd.ms-powerpoint',161 'ppt' : 'application/vnd.ms-powerpoint',162 'ps' : 'application/postscript',163 'psd' : 'image/vnd.adobe.photoshop',164 'py' : 'text/x-script.python',165 'qt' : 'video/quicktime',166 'qti' : 'image/x-quicktime',167 'qtif' : 'image/x-quicktime',168 'ra' : 'audio/x-pn-realaudio',169 'rake' : 'text/x-script.ruby',170 'ram' : 'audio/x-pn-realaudio',171 'rar' : 'application/x-rar-compressed',172 'ras' : 'image/x-cmu-raster',173 'rb' : 'text/x-script.ruby',174 'rdf' : 'application/rdf+xml',175 'rgb' : 'image/x-rgb',176 'rm' : 'application/vnd.rn-realmedia',177 'roff' : 'text/troff',178 'rpm' : 'application/x-redhat-package-manager',179 'rss' : 'application/rss+xml',180 'rtf' : 'application/rtf',181 'rtx' : 'text/richtext',182 'ru' : 'text/x-script.ruby',183 's' : 'text/x-asm',184 'sgm' : 'text/sgml',185 'sgml' : 'text/sgml',186 'sh' : 'application/x-sh',187 'shar' : 'application/x-shar',188 'sig' : 'application/pgp-signature',189 'silo' : 'model/mesh',190 'sit' : 'application/x-stuffit',191 'skd' : 'application/x-koan',192 'skm' : 'application/x-koan',193 'skp' : 'application/x-koan',194 'skt' : 'application/x-koan',195 'smi' : 'application/smil',196 'smil' : 'application/smil',197 'snd' : 'audio/basic',198 'so' : 'application/octet-stream',199 'spl' : 'application/x-futuresplash',200 'src' : 'application/x-wais-source',201 'sv4cpio' : 'application/x-sv4cpio',202 'sv4crc' : 'application/x-sv4crc',203 'svg' : 'image/svg+xml',204 'svgz' : 'image/svg+xml',205 'swf' : 'application/x-shockwave-flash',206 't' : 'text/troff',
7 unmodified lines
214 'tif' : 'image/tiff',215 'tiff' : 'image/tiff',216 'torrent' : 'application/x-bittorrent',217 'tr' : 'text/troff',218 'tsv' : 'text/tab-seperated-values',219 'txt' : 'text/plain',220 'ustar' : 'application/x-ustar',221 'vcd' : 'application/x-cdlink',222 'vcf' : 'text/x-vcard',223 'vcs' : 'text/x-vcalendar',224 'vrml' : 'model/vrml',225 'vxml' : 'application/voicexml+xml',226 'war' : 'application/java-archive',227 'wav' : 'audio/x-wav',228 'wbmp' : 'image/vnd.wap.wbmp',229 'wbxml' : 'application/vnd.wap.wbxml',230 'wma' : 'audio/x-ms-wma',231 'wml' : 'text/vnd.wap.wml',232 'wmls' : 'text/vnd.wap.wmlscript',233 'wmlsc' : 'application/vnd.wap.wmlscriptc',234 'wmv' : 'video/x-ms-wmv',235 'wmx' : 'video/x-ms-wmx',236 'wrl' : 'model/vrml',237 'wsdl' : 'application/wsdl+xml',238 'xbm' : 'image/x-xbitmap',239 'xht' : 'application/xhtml+xml',240 'xhtml' : 'application/xhtml+xml',241 'xls' : 'application/vnd.ms-excel',242 'xml' : 'application/xml',243 'xpm' : 'image/x-xpixmap',244 'xsl' : 'application/xml',245 'xslt' : 'application/xslt+xml',246 'xul' : 'application/vnd.mozilla.xul+xml',247 'xwd' : 'image/x-xwindowdump',248 'xyz' : 'chemical/x-xyz',249 'yaml' : 'text/yaml',250 'yml' : 'text/yaml',251 'zip' : 'application/zip'252}
22 unmodified lines
275 return types[path] || 276 types[extname(path)] || 277 set('default mime type') || 278 'application/octet-stream' 197}279}