Ticket #126 (closed defect: fixed)

Opened 20 months ago

Last modified 14 months ago

extra newline when using camping as cgi in apache

Reported by: till Owned by: somebody
Priority: major Milestone:
Component: camping.rb Version:
Keywords: Cc:

Description

When using a webapplication with camping as a cgi in apache, there are extra newlines "\r\n" in the output files. This breaks some downloads, e.g. pdf files. The attached patch fixes this, but I do not know, whether or not this breaks using the application standalone, because then there are no extra newlines. Attached is a patch that fixes this. The extra newline seems to be included in changeset:117 so maybe it is needed in other cases. With this path it works with fastcgi and lighttpd, too. Which is the setup I use now.

Attachments

camping-1.5-extra-newline.patch (1.6 kB) - added by till 20 months ago.

Change History

Changed 20 months ago by till

Changed 15 months ago by zimbatm

Are you sure ?

The RFC states two CRLF between the header and the body

Changed 14 months ago by zimbatm

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

Right, fixed in [224]

Note: See TracTickets for help on using tickets.