about summary refs log tree commit homepage
path: root/lib/rainbows/revactor.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-06-28 05:20:17 +0000
committerEric Wong <normalperson@yhbt.net>2010-06-28 05:20:17 +0000
commitb75ad975856a681fe96651592b2bb24cc044fd50 (patch)
tree7ffad0a90429def0138c16633972bd660a990d27 /lib/rainbows/revactor.rb
parenteaf6cca3e1d38b7307c65c257b080041e65fd215 (diff)
downloadrainbows-b75ad975856a681fe96651592b2bb24cc044fd50.tar.gz
Diffstat (limited to 'lib/rainbows/revactor.rb')
-rw-r--r--lib/rainbows/revactor.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/rainbows/revactor.rb b/lib/rainbows/revactor.rb
index 0ec23d8..021fc48 100644
--- a/lib/rainbows/revactor.rb
+++ b/lib/rainbows/revactor.rb
@@ -44,9 +44,7 @@ module Rainbows::Revactor
     alive = true
 
     begin
-      while ! hp.headers(env, buf)
-        buf << client.read(*rd_args)
-      end
+      buf << client.read(*rd_args) until hp.headers(env, buf)
 
       env[CLIENT_IO] = client
       env[RACK_INPUT] = 0 == hp.content_length ?