A few more MIME Types
Add a few more likely suspects.
This commit is contained in:
parent
162a00bed4
commit
bc0153c23f
|
@ -1,7 +1,6 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
require 'webrick'
|
require 'webrick'
|
||||||
require 'webrick/httputils'
|
|
||||||
require 'optparse'
|
require 'optparse'
|
||||||
|
|
||||||
OPTIONS = {
|
OPTIONS = {
|
||||||
|
@ -11,11 +10,17 @@ OPTIONS = {
|
||||||
:server_root => File.expand_path(File.dirname(__FILE__) + "/../public/"),
|
:server_root => File.expand_path(File.dirname(__FILE__) + "/../public/"),
|
||||||
:server_type => WEBrick::SimpleServer,
|
:server_type => WEBrick::SimpleServer,
|
||||||
:mime_types => WEBrick::HTTPUtils::DefaultMimeTypes.merge({
|
:mime_types => WEBrick::HTTPUtils::DefaultMimeTypes.merge({
|
||||||
'js' => 'application/x-javascript',
|
'avi' => 'video/x-msvideo',
|
||||||
'svg' => 'application/svg+xml',
|
'gz' => 'application/x-gzip',
|
||||||
'tex' => 'application/x-tex',
|
'js' => 'application/x-javascript',
|
||||||
'pdf' => 'application/pdf',
|
'nb' => 'application/mathematica',
|
||||||
'avi' => 'video/x-msvideo' })
|
'pdf' => 'application/pdf',
|
||||||
|
'svg' => 'application/svg+xml',
|
||||||
|
'tar' => 'application/x-tar',
|
||||||
|
'tex' => 'application/x-tex',
|
||||||
|
'xml' => 'application/xml',
|
||||||
|
'xslt' => 'application/xslt+xml'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
ARGV.options do |opts|
|
ARGV.options do |opts|
|
||||||
|
|
Loading…
Reference in a new issue