1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Tue Oct 18 02:24:19 2011 Takeyuki FUJIOKA <xibbar@ruby-lang.org>

* lib/cgi/core.rb (QueryExtension#read_multiparat): replace 'stdinput'
  from '$stdin' because using fast cgi. [Bug #5451]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
xibbar 2011-10-17 17:33:57 +00:00
parent 4db3466357
commit 673448c27d

View file

@ -462,7 +462,7 @@ class CGI
#
def read_multipart(boundary, content_length)
## read first boundary
stdin = $stdin
stdin = stdinput
first_line = "--#{boundary}#{EOL}"
content_length -= first_line.bytesize
status = stdin.read(first_line.bytesize)