diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-28 08:06:28 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-28 08:06:28 +0000 |
commit | 8dbea459ff1ce69a17fbcb6ff70ab1604c9a3af3 (patch) | |
tree | 9f6871a73897e8253d3d32b06ae55b0a87859ea4 /test/webrick | |
parent | e2767b42558d4b58d2036803ac069b50c3110f1f (diff) | |
download | ruby-8dbea459ff1ce69a17fbcb6ff70ab1604c9a3af3.tar.gz |
webrick/httpservlet/cgihandler: reduce memory use
WEBrick::HTTPRequest#body can be passed a block to process the
body in chunks. Use this feature to avoid building a giant
string in memory.
* lib/webrick/httpservlet/cgihandler.rb (do_GET):
avoid reading entire request body into memory
(do_POST is aliased to do_GET, so it handles bodies)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/webrick')
0 files changed, 0 insertions, 0 deletions