about summary refs log tree commit homepage
path: root/lib/rainbows/rev
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-07-08 23:21:18 +0000
committerEric Wong <normalperson@yhbt.net>2010-07-08 23:21:18 +0000
commit9abb447a573751b87e26ce35f4f05d58290f4c41 (patch)
tree1adb0dac9acd99c9add0880751c7e022003776ef /lib/rainbows/rev
parent235985c6c4b37ed9a170c38052db3ef0772b1527 (diff)
downloadrainbows-9abb447a573751b87e26ce35f4f05d58290f4c41.tar.gz
Cramp monkey patches Rainbows internals for WebSockets
support and we forgot about it.  Add a new integration
test to ensure this continues to work in the future
(and force us to update the test for newer Cramp).
Diffstat (limited to 'lib/rainbows/rev')
-rw-r--r--lib/rainbows/rev/client.rb2
-rw-r--r--lib/rainbows/rev/core.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/rev/client.rb b/lib/rainbows/rev/client.rb
index bc8d7fa..91947b6 100644
--- a/lib/rainbows/rev/client.rb
+++ b/lib/rainbows/rev/client.rb
@@ -6,7 +6,7 @@ module Rainbows
     class Client < ::Rev::IO
       include Rainbows::ByteSlice
       include Rainbows::EvCore
-      include Rainbows::HttpResponse
+      include Rainbows::Response
       G = Rainbows::G
       HH = Rack::Utils::HeaderHash
 
diff --git a/lib/rainbows/rev/core.rb b/lib/rainbows/rev/core.rb
index 2488cf2..4668cce 100644
--- a/lib/rainbows/rev/core.rb
+++ b/lib/rainbows/rev/core.rb
@@ -22,7 +22,7 @@ module Rainbows
       # for connections and doesn't die until the parent dies (or is
       # given a INT, QUIT, or TERM signal)
       def worker_loop(worker)
-        Rainbows::HttpResponse.setup(Rainbows::Rev::Client)
+        Rainbows::Response.setup(Rainbows::Rev::Client)
         require 'rainbows/rev/sendfile'
         Rainbows::Rev::Client.__send__(:include, Rainbows::Rev::Sendfile)
         init_worker_process(worker)