Does anyone know how I can get at the guts of how WEBrick handles
mime-types?
I have a suspicion that it is returning an incorrect mime-type in a
response.
Wes
Does anyone know how I can get at the guts of how WEBrick handles
mime-types?
I have a suspicion that it is returning an incorrect mime-type in a
response.
Wes
FYI:
$RUBY_HOME/lib/ruby/1.8/webrick/httputils.rb contains the set of default
MIME types for WEBrick.
The “xsl” extension is not in this list.
Adding “xsl” => “text/xml” appears to allow XSL to come back to the
browser correctly.
Wes
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs