Ticket #19 (closed bug: fixed)

Opened 1 year ago

Last modified 2 months ago

HttpResponse#reset does not properly reset HeaderOut

Reported by: evanweaver Assigned to: evanweaver
Priority: minor Milestone: 1.2
Component: Mongrel Keywords: wczasy, wakacje, egipt, kreta, last minute, lastminute
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.

03/22/09 12:01:40 changed by sneakeralley

04/28/09 19:52:46 changed by sneakeralley

  • keywords set to Nike Air Force One, Air Force 1, Air Force One, Air Force Shoes, Nike Air Force 1.

05/15/09 12:33:43 changed by last minute

  • keywords changed from Nike Air Force One, Air Force 1, Air Force One, Air Force Shoes, Nike Air Force 1 to wczasy, wakacje, egipt, kreta, last minute, lastminute.