From: "Martin J. Dürst" <duerst@...> Date: 2011-09-26T12:40:43+09:00 Subject: [ruby-core:39724] Re: [Ruby 1.9 - Bug #5365] WEBrick lacks the application/javascript and image/svg+xml MIME types. On 2011/09/26 9:52, Yui NARUSE wrote: > > Issue #5365 has been updated by Yui NARUSE. > > > RFC3203 says SVG's MIME Type is image/svg+xml, isn't it? I think you meant RFC 3023. > http://www.ietf.org/rfc/rfc3023.txt No, that uses this just for an example. For the actual registration, please see: http://www.iana.org/assignments/media-types/image/index.html and http://www.w3.org/TR/SVG/mimereg.html. (For application/javascript, please see http://www.rfc-editor.org/rfc/rfc4329.txt and http://www.iana.org/assignments/media-types/application/index.html.) Regards, Martin. > ---------------------------------------- > Bug #5365: WEBrick lacks the application/javascript and image/svg+xml MIME types. > http://redmine.ruby-lang.org/issues/5365 > > Author: Hal Brodigan > Status: Open > Priority: Normal > Assignee: > Category: lib > Target version: > ruby -v: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] > > > WEBrick::HTTPUtils::DefaultMimeTypes (webrick/httputils.rb) does not define MIME types for the file extensions 'js' and 'svg'. This forces projects that use WEBrick directly (such as Jekyll) to define these MIME types. > >