Project

General

Profile

Bug #4685

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

Added by Eric Hodel almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
ruby -v:
ruby 1.9.3dev (2011-05-13 trunk 31536) [x86_64-darwin10.7.0]
Backport:
2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
[ruby-core:36159]

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 over 4 years ago

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

Revision 32117
Added by Eric Hodel over 4 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 [ruby-core:36547] Updated by Yui NARUSE over 4 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 over 4 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