about summary refs log tree commit homepage
path: root/lib/rainbows/http_server.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-05-03 01:15:37 +0000
committerEric Wong <normalperson@yhbt.net>2011-05-03 01:15:37 +0000
commite9a229c639dd6bda08a3fa8ce14af3688dc2ba63 (patch)
tree530b649bdabf4c9886ae2cf6fe695b70ac54d179 /lib/rainbows/http_server.rb
parenta7f5f17ba2047ef7143465f612007ea81871a79e (diff)
downloadrainbows-e9a229c639dd6bda08a3fa8ce14af3688dc2ba63.tar.gz
Too confusing otherwise...
Diffstat (limited to 'lib/rainbows/http_server.rb')
-rw-r--r--lib/rainbows/http_server.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb
index c36b7bf..acc64b5 100644
--- a/lib/rainbows/http_server.rb
+++ b/lib/rainbows/http_server.rb
@@ -35,7 +35,7 @@ class Rainbows::HttpServer < Unicorn::HttpServer
   def load_config!
     use :Base
     Rainbows.keepalive_timeout = 5
-    Rainbows.max_bytes = 1024 * 1024
+    Rainbows.client_max_body_size = 1024 * 1024
     @worker_connections = nil
     super
     @worker_connections ||= @use == :Base ? 1 : 50
@@ -139,7 +139,7 @@ class Rainbows::HttpServer < Unicorn::HttpServer
     else
       raise ArgumentError, err
     end
-    Rainbows.max_bytes = nr
+    Rainbows.client_max_body_size = nr
   end
 
   def client_header_buffer_size(bytes)