Project

General

Profile

Actions

Bug #4685

closed

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

Added by drbrain (Eric Hodel) over 13 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3dev (2011-05-13 trunk 31536) [x86_64-darwin10.7.0]
Backport:
[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.


Files

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

Updated by naruse (Yui NARUSE) over 13 years ago

  • Status changed from Open to Assigned
  • Assignee set to drbrain (Eric Hodel)

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

Actions #3

Updated by drbrain (Eric Hodel) over 13 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]
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0