From bc0153c23f9135af24cfe3536d58be5a215d84ef Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Tue, 29 May 2007 23:02:19 -0500 Subject: [PATCH] A few more MIME Types Add a few more likely suspects. --- script/server | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/script/server b/script/server index 926e764c..3d7b1db3 100755 --- a/script/server +++ b/script/server @@ -1,7 +1,6 @@ #!/usr/bin/env ruby require 'webrick' -require 'webrick/httputils' require 'optparse' OPTIONS = { @@ -11,11 +10,17 @@ OPTIONS = { :server_root => File.expand_path(File.dirname(__FILE__) + "/../public/"), :server_type => WEBrick::SimpleServer, :mime_types => WEBrick::HTTPUtils::DefaultMimeTypes.merge({ - 'js' => 'application/x-javascript', - 'svg' => 'application/svg+xml', - 'tex' => 'application/x-tex', - 'pdf' => 'application/pdf', - 'avi' => 'video/x-msvideo' }) + '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', + 'xml' => 'application/xml', + 'xslt' => 'application/xslt+xml' + }) } ARGV.options do |opts|