MIME-Types for WEBrick
This commit is contained in:
parent
ab7f429a10
commit
5cbdccec2a
2 changed files with 14 additions and 3 deletions
|
@ -8,7 +8,20 @@ OPTIONS = {
|
|||
:ip => "0.0.0.0",
|
||||
:environment => "production",
|
||||
:server_root => File.expand_path(File.dirname(__FILE__) + "/../public/"),
|
||||
:server_type => WEBrick::SimpleServer
|
||||
:server_type => WEBrick::SimpleServer,
|
||||
:mime_types => WEBrick::HTTPUtils::DefaultMimeTypes.merge({
|
||||
'avi' => 'video/x-msvideo',
|
||||
'gz' => 'application/x-gzip',
|
||||
'js' => 'application/x-javascript',
|
||||
'nb' => 'application/mathematica',
|
||||
'pdf' => 'application/pdf',
|
||||
'svg' => 'application/svg+xml',
|
||||
'tar' => 'application/x-tar',
|
||||
'tex' => 'application/x-tex',
|
||||
'xhtml' => 'application/xhtml+xml',
|
||||
'xml' => 'application/xml',
|
||||
'xslt' => 'application/xslt+xml'
|
||||
})
|
||||
}
|
||||
|
||||
ARGV.options do |opts|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue