about summary refs log tree commit homepage
path: root/lib/rainbows/rev.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-14 17:39:12 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-14 17:39:58 -0700
commit8b4a29032faac894f6702cc6160ef6366e739092 (patch)
tree93a60f3ac11c22464716416255c59ad2552bd258 /lib/rainbows/rev.rb
parent57a1ae94c3ac0948737744b651d59945c1ac3099 (diff)
downloadrainbows-8b4a29032faac894f6702cc6160ef6366e739092.tar.gz
We should try to send 400s back to the client if possible.
Diffstat (limited to 'lib/rainbows/rev.rb')
-rw-r--r--lib/rainbows/rev.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/rev.rb b/lib/rainbows/rev.rb
index 8a575cd..abdc326 100644
--- a/lib/rainbows/rev.rb
+++ b/lib/rainbows/rev.rb
@@ -82,8 +82,6 @@ module Rainbows
         else
           @state = :close
         end
-        rescue Object => e
-          handle_error(e)
       end
 
       def on_write_complete
@@ -137,6 +135,8 @@ module Rainbows
         when :trailers
           @hp.trailers(@env, @buf << data) and app_call
         end
+        rescue Object => e
+          handle_error(e)
       end
     end