about summary refs log tree commit homepage
path: root/lib/rainbows/ev_core.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-19 16:23:54 -0800
committerEric Wong <normalperson@yhbt.net>2011-01-19 16:23:54 -0800
commit1a449c8abafbb17f9e7c2d68363957c80dc1ab86 (patch)
tree3d16f855a21a09bf273caad660c28ca4797580fb /lib/rainbows/ev_core.rb
parent9424b13255a238dfa44952ebeb07bea3acee999c (diff)
downloadrainbows-1a449c8abafbb17f9e7c2d68363957c80dc1ab86.tar.gz
We guarantee the Rack env will exist for the duration of
the request/response cycle, so we can just tweak
"rainbows.autochunk".
Diffstat (limited to 'lib/rainbows/ev_core.rb')
-rw-r--r--lib/rainbows/ev_core.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb
index b9b3381..d958b18 100644
--- a/lib/rainbows/ev_core.rb
+++ b/lib/rainbows/ev_core.rb
@@ -55,7 +55,7 @@ module Rainbows::EvCore
       rv = false
     else
       rv = !!(headers[Transfer_Encoding] =~ %r{\Achunked\z}i)
-      rv = false if headers.delete('X-Rainbows-Autochunk') == 'no'
+      rv = false unless @env["rainbows.autochunk"]
     end
     write_headers(status, headers, alive)
     rv