Ticket #19 (closed bug: fixed)

Opened 8 months ago

Last modified 7 months ago

HttpResponse#reset does not properly reset HeaderOut

Reported by: evanweaver Assigned to: evanweaver
Priority: minor Milestone: 1.2
Component: Mongrel Keywords:
Cc:

Description

Calling HttpResponse#reset? does not properly reset HeaderOut?. It only truncates the `out' StringIO buffer (i.e. it does not do rewind) and does not reset the list `sent' headers.

This will result in headers being ignored or not being sent properly if you've set them after you called reset.

The solution is as simple as setting sent' to {} and and calling seek(0)' on `out'.

Change History

03/23/08 22:50:31 changed by evanweaver

  • status changed from new to closed.
  • resolution set to fixed.