Bug #4685

WEBrick::HTTPServlet::ERBHandler should allow ERB documents to set content_type

Added by Eric Hodel almost 3 years ago. Updated almost 3 years ago.

[ruby-core:36159]
Status:Closed
Priority:Normal
Assignee:Eric Hodel
Category:lib
Target version:1.9.3
ruby -v:ruby 1.9.3dev (2011-05-13 trunk 31536) [x86_64-darwin10.7.0] Backport:

Description

Currently setting the MIME type in an rhtml file processed by ERBHandler is not possible as the content_type is always overridden. The ERBHandler should allow this to be overridden.

erbhandler.allow_content_type_override.patch Magnifier - Patch to allow the content_type to be overridden (583 Bytes) Eric Hodel, 05/13/2011 07:38 AM

Associated revisions

Revision 32117
Added by Eric Hodel almost 3 years ago

  • lib/webrick/httpservlet/erbhandler.rb: Allow the ERB document to alter the content-type of the response. [Ruby 1.9 - Bug #4685]

History

#2 Updated by Yui NARUSE almost 3 years ago

  • Status changed from Open to Assigned
  • Assignee set to Eric Hodel

It seems reasonable, please commit it unless anyone object to this.

#3 Updated by Eric Hodel almost 3 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r32117.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/webrick/httpservlet/erbhandler.rb: Allow the ERB document to alter the content-type of the response. [Ruby 1.9 - Bug #4685]

Also available in: Atom PDF