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
-
raggi May 3rd, 2011 @ 07:43 AM
- State changed from new to resolved
- Milestone order changed from 0 to 0
This has been fixed already.
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป