#93 ✓resolved
SztupY

CGI handler should use RewindableInput

Reported by SztupY | March 10th, 2010 @ 01:57 PM

The CGI handler uses stdin as the input source which might be non rewindable.
So in handlers/cgi.rb instead of

"rack.input" => $stdin

it should be

"rack.input" => RewindableInput.new(STDIN)

The LSWS handler seems also be a bit off. Instead of

rack_input = RewindableInput.new($stdin.read.to_s)

shouldn't it be

rack_input = RewindableInput.new($stdin)

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages