summaryrefslogtreecommitdiff
path: root/lib/webrick/cgi.rb
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-17 07:03:57 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-17 07:03:57 +0000
commit1e8c6e2ba4eb4305a756f650248283ecad4f36cb (patch)
treec039ee1a23b5b8fa6de191bfdc3476578f37407a /lib/webrick/cgi.rb
parent3f07e548fc8b1247824a008c970fcbcf10116a93 (diff)
downloadruby-1e8c6e2ba4eb4305a756f650248283ecad4f36cb.tar.gz
* lib/webrick/httprequest.rb, lib/webrick/cgi.rb: Request-Line or
header fields shold be read with maximum length. [ruby-talk:231745] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/cgi.rb')
-rw-r--r--lib/webrick/cgi.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/webrick/cgi.rb b/lib/webrick/cgi.rb
index ff140ca84e..8e43ac570e 100644
--- a/lib/webrick/cgi.rb
+++ b/lib/webrick/cgi.rb
@@ -196,8 +196,8 @@ module WEBrick
[nil, @server_port, @server_name, @server_addr]
end
- def gets(eol=LF)
- input.gets(eol)
+ def gets(eol=LF, size=nil)
+ input.gets(eol, size)
end
def read(size=nil)