diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-02-27 19:04:40 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-02-27 19:04:40 -0800 |
commit | 9d60e1931021faa52bee60e34913c656317f2698 (patch) | |
tree | 157ef5c582eb38bc598fd0320f9dd7f2319f1b9a /lib/rainbows/ev_core.rb | |
parent | 5221350c4c1e9a431fc06f14d3d8a695f8085ce5 (diff) | |
download | rainbows-9d60e1931021faa52bee60e34913c656317f2698.tar.gz |
Just create an empty string instead and let Unicorn::HttpParser allocate it internally to whatever size is needed.
Diffstat (limited to 'lib/rainbows/ev_core.rb')
-rw-r--r-- | lib/rainbows/ev_core.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb index a9c5bfc..3d02b8a 100644 --- a/lib/rainbows/ev_core.rb +++ b/lib/rainbows/ev_core.rb @@ -50,7 +50,7 @@ module Rainbows @env.delete(HTTP_EXPECT) end @input = len && len <= MAX_BODY ? StringIO.new("") : Util.tmpio - @hp.filter_body(@buf2 = @buf.dup, @buf) + @hp.filter_body(@buf2 = "", @buf) @input << @buf2 on_read("") end |