Skip to content
Myr

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

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

authored by visionmedia · committed by visionmedia · parents 2b92e40, 5a5f23f · Browse files · 1 file+82 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

1 file+82 added−2 removed

  • other:+82 added−2 removed

1 file+82 added−2 removed

modified:lib/express/mime.js+82 added-2 removed
12// Express - Mime - Copyright TJ Holowaychuk <tj@vision-media.ca> (MIT Licensed)34var types = {5 '323' : 'text/h323',6 '3gp' : 'video/3gpp',7 'a' : 'application/octet-stream',8 'acx' : 'application/internet-property-stream',9 'ai' : 'application/postscript',10 'aif' : 'audio/x-aiff',11 'aifc' : 'audio/x-aiff',12 'aiff' : 'audio/x-aiff',13 'asc' : 'application/pgp-signature',14 'asf' : 'video/x-ms-asf',15 'asr' : 'video/x-ms-asf',16 'asm' : 'text/x-asm',17 'asx' : 'video/x-ms-asf',18 'atom' : 'application/atom+xml',19 'au' : 'audio/basic',20 'avi' : 'video/x-msvideo',21 'axs' : 'application/olescript',22 'bas' : 'text/plain',23 'bat' : 'application/x-msdownload',24 'bcpio' : 'application/x-bcpio',25 'bin' : 'application/octet-stream',26 'bmp' : 'image/bmp',27 'bz2' : 'application/x-bzip2',28 'c' : 'text/x-c',29 'cab' : 'application/vnd.ms-cab-compressed',30 'cat' : 'application/vnd.ms-pkiseccat',31 'cc' : 'text/x-c',32 'cdf' : 'application/x-netcdf',33 'cer' : 'application/x-x509-ca-cert',34 'cgm' : 'image/cgm',35 'chm' : 'application/vnd.ms-htmlhelp',36 'class' : 'application/octet-stream',37 'clp' : 'application/x-msclip',38 'cmx' : 'image/x-cmx',39 'cod' : 'image/cis-cod',40 'com' : 'application/x-msdownload',41 'conf' : 'text/plain',42 'cpio' : 'application/x-cpio',43 'cpp' : 'text/x-c',44 'cpt' : 'application/mac-compactpro',45 'crd' : 'application/x-mscardfile',46 'crl' : 'application/pkix-crl',47 'crt' : 'application/x-x509-ca-cert',48 'csh' : 'application/x-csh',49 'css' : 'text/css',50 'csv' : 'text/csv',
1 unmodified line
52 'dcr' : 'application/x-director',53 'deb' : 'application/x-debian-package',54 'der' : 'application/x-x509-ca-cert',55 'diff' : 'text/x-diff',56 'dir' : 'application/x-director',57 'djv' : 'image/vnd.djvu',58 'djvu' : 'image/vnd.djvu',59 'dll' : 'application/x-msdownload',60 'dmg' : 'application/octet-stream',
7 unmodified lines
68 'ear' : 'application/java-archive',69 'eml' : 'message/rfc822',70 'eps' : 'application/postscript',71 'etx' : 'text/x-setext',72 'evy' : 'application/envoy',73 'exe' : 'application/x-msdownload',74 'ez' : 'application/andrew-inset',75 'f' : 'text/x-fortran',76 'f77' : 'text/x-fortran',77 'f90' : 'text/x-fortran',78 'fif' : 'application/fractals',79 'flr' : 'x-world/x-vrml',80 'flv' : 'video/x-flv',81 'for' : 'text/x-fortran',82 'gem' : 'application/octet-stream',83 'gemspec' : 'text/x-script.ruby',
4 unmodified lines
88 'gz' : 'application/x-gzip',89 'h' : 'text/x-c',90 'hdf' : 'application/x-hdf',91 'hh' : 'text/x-c',92 'hlp' : 'application/winhlp',93 'hqx' : 'application/mac-binhex40',94 'hta' : 'application/hta',95 'htc' : 'text/x-component',96 'htm' : 'text/html',97 'html' : 'text/html',78 'hqx' : 'application/mac-binhex40',98 'htt' : 'text/webviewhtml',99 'ice' : 'x-conference/x-cooltalk',100 'ico' : 'image/vnd.microsoft.icon',101 'ics' : 'text/calendar',102 'ief' : 'image/ief',103 'ifb' : 'text/calendar',104 'iges' : 'model/iges',105 'igs' : 'model/iges',106 'iii' : 'application/x-iphone',107 'ins' : 'application/x-internet-signup',108 'isp' : 'application/x-internet-signup',109 'iso' : 'application/octet-stream',110 'jar' : 'application/java-archive',111 'java' : 'text/x-java-source',112 'jfif' : 'image/pipeg',113 'jnlp' : 'application/x-java-jnlp-file',114 'jp2' : 'image/jp2',115 'jpe' : 'image/jpeg',116 'jpeg' : 'image/jpeg',
2 unmodified lines
119 'json' : 'application/json',120 'kar' : 'audio/midi',121 'latex' : 'application/x-latex',122 'lha' : 'application/octet-stream',123 'lsf' : 'video/x-la-asf',124 'lsx' : 'video/x-la-asf',125 'lzh' : 'application/octet-stream',126 'log' : 'text/plain',127 'm13' : 'application/x-msmediaview',128 'm14' : 'application/x-msmediaview',129 'm3u' : 'audio/x-mpegurl',130 'm4a' : 'audio/mp4a-latm',131 'm4b' : 'audio/mp4a-latm',132 'm4p' : 'audio/mp4a-latm',
2 unmodified lines
135 'mac' : 'image/x-macpaint',136 'man' : 'text/troff',137 'mathml' : 'application/mathml+xml',138 'mbox' : 'application/mbox',139 'mdb' : 'application/x-msaccess',140 'mdoc' : 'text/troff',141 'me' : 'text/troff',142 'mesh' : 'model/mesh',143 'mht' : 'message/rfc822',144 'mhtml' : 'message/rfc822',145 'mid' : 'audio/midi',146 'midi' : 'audio/midi',147 'mif' : 'application/vnd.mif',148 'mime' : 'message/rfc822',149 'mml' : 'application/mathml+xml',150 'mng' : 'video/x-mng',151 'mny' : 'application/x-msmoney',152 'mov' : 'video/quicktime',153 'movie' : 'video/x-sgi-movie',122 'mp2' : 'audio/mpeg',154 'mp2' : 'video/mpeg',155 'mp3' : 'audio/mpeg',156 'mp4' : 'video/mp4',157 'mp4v' : 'video/mp4',158 'mpa' : 'video/mpeg',159 'mpe' : 'video/mpeg',160 'mpeg' : 'video/mpeg',161 'mpg' : 'video/mpeg',162 'mpga' : 'audio/mpeg',163 'mpp' : 'application/vnd.ms-project',164 'mpv2' : 'video/mpeg',165 'ms' : 'text/troff',166 'msh' : 'model/mesh',167 'msi' : 'application/x-msdownload',168 'mvb' : 'application/x-msmediaview',169 'mxu' : 'video/vnd.mpegurl',170 'nc' : 'application/x-netcdf',171 'nws' : 'message/rfc822',172 'oda' : 'application/oda',173 'odp' : 'application/vnd.oasis.opendocument.presentation',174 'ods' : 'application/vnd.oasis.opendocument.spreadsheet',175 'odt' : 'application/vnd.oasis.opendocument.text',176 'ogg' : 'application/ogg',177 'p' : 'text/x-pascal',178 'p10' : 'application/pkcs10',179 'p12' : 'application/x-pkcs12',180 'p7b' : 'application/x-pkcs7-certificates',181 'p7c' : 'application/x-pkcs7-mime',182 'p7m' : 'application/x-pkcs7-mime',183 'p7r' : 'application/x-pkcs7-certreqresp',184 'p7s' : 'application/x-pkcs7-signature',185 'pas' : 'text/x-pascal',186 'pbm' : 'image/x-portable-bitmap',187 'pct' : 'image/pict',188 'pdb' : 'chemical/x-pdb',189 'pdf' : 'application/pdf',190 'pem' : 'application/x-x509-ca-cert',191 'pfx' : 'application/x-pkcs12',192 'pgm' : 'image/x-portable-graymap',193 'pgn' : 'application/x-chess-pgn',194 'pgp' : 'application/pgp-encrypted',195 'pic' : 'image/pict',196 'pict' : 'image/pict',197 'pkg' : 'application/octet-stream',198 'pko' : 'application/ynd.ms-pkipko',199 'pl' : 'text/x-script.perl',200 'pm' : 'text/x-script.perl-module',201 'pma' : 'application/x-perfmon',202 'pmc' : 'application/x-perfmon',203 'pml' : 'application/x-perfmon',204 'pmr' : 'application/x-perfmon',205 'pmw' : 'application/x-perfmon',206 'png' : 'image/png',207 'pnm' : 'image/x-portable-anymap',208 'pnt' : 'image/x-macpaint',209 'pntg' : 'image/x-macpaint',210 'pot' : 'application/vnd.ms-powerpoint',211 'ppm' : 'image/x-portable-pixmap',212 'pps' : 'application/vnd.ms-powerpoint',213 'ppt' : 'application/vnd.ms-powerpoint',214 'prf' : 'application/pics-rules',215 'ps' : 'application/postscript',216 'psd' : 'image/vnd.adobe.photoshop',217 'pub' : 'application/x-mspublisher',218 'py' : 'text/x-script.python',219 'qt' : 'video/quicktime',220 'qti' : 'image/x-quicktime',221 'qtif' : 'image/x-quicktime',
5 unmodified lines
227 'rb' : 'text/x-script.ruby',228 'rdf' : 'application/rdf+xml',229 'rgb' : 'image/x-rgb',230 'rm' : 'application/vnd.rn-realmedia',231 'rmi' : 'audio/mid',232 'roff' : 'text/troff',233 'rpm' : 'application/x-redhat-package-manager',234 'rss' : 'application/rss+xml',235 'rtf' : 'application/rtf',236 'rtx' : 'text/richtext',237 'ru' : 'text/x-script.ruby',238 's' : 'text/x-asm',239 'scd' : 'application/x-msschedule',240 'sct' : 'text/scriptlet',241 'setpay' : 'application/set-payment-initiation',242 'setreg' : 'application/set-registration-initiation',243 'sgm' : 'text/sgml',244 'sgml' : 'text/sgml',245 'sh' : 'application/x-sh',246 'shar' : 'application/x-shar',
7 unmodified lines
254 'smi' : 'application/smil',255 'smil' : 'application/smil',256 'snd' : 'audio/basic',257 'so' : 'application/octet-stream',258 'spc' : 'application/x-pkcs7-certificates',259 'spl' : 'application/x-futuresplash',260 'src' : 'application/x-wais-source',261 'sst' : 'application/vnd.ms-pkicertstore',262 'stl' : 'application/vnd.ms-pkistl',263 'stm' : 'text/html',264 'sv4cpio' : 'application/x-sv4cpio',265 'sv4crc' : 'application/x-sv4crc',266 'svg' : 'image/svg+xml',267 'svgz' : 'image/svg+xml',
5 unmodified lines
273 'tex' : 'application/x-tex',274 'texi' : 'application/x-texinfo',275 'texinfo' : 'application/x-texinfo',276 'text' : 'text/plain',277 'tgz' : 'application/x-compressed',278 'tif' : 'image/tiff',279 'tiff' : 'image/tiff',280 'torrent' : 'application/x-bittorrent',281 'tr' : 'text/troff',282 'trm' : 'application/x-msterminal',283 'tsv' : 'text/tab-seperated-values',284 'txt' : 'text/plain',285 'uls' : 'text/iuls',286 'ustar' : 'application/x-ustar',287 'vcd' : 'application/x-cdlink',288 'vcf' : 'text/x-vcard',289 'vcs' : 'text/x-vcalendar',
2 unmodified lines
292 'war' : 'application/java-archive',293 'wav' : 'audio/x-wav',294 'wbmp' : 'image/vnd.wap.wbmp',295 'wbxml' : 'application/vnd.wap.wbxml',296 'wcm' : 'application/vnd.ms-works',297 'wdb' : 'application/vnd.ms-works',298 'wks' : 'application/vnd.ms-works',299 'wma' : 'audio/x-ms-wma',300 'wmf' : 'application/x-msmetafile',301 'wml' : 'text/vnd.wap.wml',302 'wmls' : 'text/vnd.wap.wmlscript',303 'wmlsc' : 'application/vnd.wap.wmlscriptc',304 'wmv' : 'video/x-ms-wmv',305 'wmx' : 'video/x-ms-wmx',306 'wps' : 'application/vnd.ms-works',307 'wri' : 'application/x-mswrite',308 'wrl' : 'model/vrml',309 'wrz' : 'x-world/x-vrml',310 'wsdl' : 'application/wsdl+xml',311 'xaf' : 'x-world/x-vrml',312 'xbm' : 'image/x-xbitmap',313 'xht' : 'application/xhtml+xml',314 'xhtml' : 'application/xhtml+xml',315 'xla' : 'application/vnd.ms-excel',316 'xlc' : 'application/vnd.ms-excel',317 'xlm' : 'application/vnd.ms-excel',318 'xls' : 'application/vnd.ms-excel',319 'xlt' : 'application/vnd.ms-excel',320 'xml' : 'application/xml',321 'xof' : 'x-world/x-vrml',322 'xpm' : 'image/x-xpixmap',323 'xsl' : 'application/xml',324 'xslt' : 'application/xslt+xml',325 'xul' : 'application/vnd.mozilla.xul+xml',326 'xwd' : 'image/x-xwindowdump',327 'xyz' : 'chemical/x-xyz',328 'yaml' : 'text/yaml',329 'yml' : 'text/yaml',330 'z' : 'application/x-compress',331 'zip' : 'application/zip'332}333334/**
25 unmodified lines