[前][次][番号順一覧][スレッド一覧]

ruby-changes:21290

From: naruse <ko1@a...>
Date: Mon, 26 Sep 2011 11:29:06 +0900 (JST)
Subject: [ruby-changes:21290] naruse:r33339 (trunk): * lib/webrick/httputils.rb: Add MIME Type definition of .js and .svg.

naruse	2011-09-26 11:28:54 +0900 (Mon, 26 Sep 2011)

  New Revision: 33339

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33339

  Log:
    * lib/webrick/httputils.rb: Add MIME Type definition of .js and .svg.
      patched by Hal Brodigan. [ruby-core:39704] [Bug #5365]

  Modified files:
    trunk/ChangeLog
    trunk/lib/webrick/httputils.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33338)
+++ ChangeLog	(revision 33339)
@@ -1,3 +1,8 @@
+Mon Sep 26 11:27:38 2011  NARUSE, Yui  <naruse@r...>
+
+	* lib/webrick/httputils.rb: Add MIME Type definition of .js and .svg.
+	  patched by Hal Brodigan. [ruby-core:39704] [Bug #5365]
+
 Mon Sep 26 09:20:44 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* configure.in: remove DJGPP support. It's not longer supported
Index: lib/webrick/httputils.rb
===================================================================
--- lib/webrick/httputils.rb	(revision 33338)
+++ lib/webrick/httputils.rb	(revision 33339)
@@ -57,6 +57,7 @@
       "jpe"   => "image/jpeg",
       "jpeg"  => "image/jpeg",
       "jpg"   => "image/jpeg",
+      "js"    => "application/javascript",
       "lha"   => "application/octet-stream",
       "lzh"   => "application/octet-stream",
       "mov"   => "video/quicktime",
@@ -78,6 +79,7 @@
       "rtf"   => "application/rtf",
       "sgm"   => "text/sgml",
       "sgml"  => "text/sgml",
+      "svg"   => "image/svg+xml",
       "tif"   => "image/tiff",
       "tiff"  => "image/tiff",
       "txt"   => "text/plain",

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]