diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-06-10 02:13:55 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-06-10 02:13:55 +0000 |
commit | 7bb7c4469fb744135377d68e7c29cde3fbc635dc (patch) | |
tree | 783f8fac006baeae760483e6877dabf69e1054d6 /lib/rainbows/ev_core.rb | |
parent | 772a5da573a661df6421afa6398b9e4023e77ce4 (diff) | |
download | rainbows-7bb7c4469fb744135377d68e7c29cde3fbc635dc.tar.gz |
It's easier-to-use in some cases.
Diffstat (limited to 'lib/rainbows/ev_core.rb')
-rw-r--r-- | lib/rainbows/ev_core.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb index 030c8e1..5c1355f 100644 --- a/lib/rainbows/ev_core.rb +++ b/lib/rainbows/ev_core.rb @@ -80,8 +80,7 @@ module Rainbows::EvCore def on_read(data) case @state when :headers - @buf << data - @hp.parse or return want_more + @hp.add_parse(data) or return want_more @state = :body if 0 == @hp.content_length app_call NULL_IO # common case |