summary refs log tree commit homepage
path: root/lib/rainbows/max_body.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/max_body.rb
parenta7f5f17ba2047ef7143465f612007ea81871a79e (diff)
Too confusing otherwise...
Diffstat (limited to 'lib/rainbows/max_body.rb')
-rw-r--r--lib/rainbows/max_body.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/max_body.rb b/lib/rainbows/max_body.rb
index fba8b3c..c70cbba 100644
--- a/lib/rainbows/max_body.rb
+++ b/lib/rainbows/max_body.rb
@@ -25,7 +25,7 @@ class Rainbows::MaxBody
   #   # in config.ru:
   #   use Rainbows::MaxBody, 4096
   #   run YourApplication.new
-  def initialize(app, limit = Rainbows.max_bytes)
+  def initialize(app, limit = Rainbows.client_max_body_size)
     Integer === limit or raise ArgumentError, "limit not an Integer"
     @app, @limit = app, limit
   end
@@ -51,7 +51,7 @@ class Rainbows::MaxBody
   # this is called after forking, so it won't ever affect the master
   # if it's reconfigured
   def self.setup # :nodoc:
-    Rainbows.max_bytes or return
+    Rainbows.client_max_body_size or return
     case Rainbows.server.use
     when :Rev, :Coolio, :EventMachine, :NeverBlock,
          :RevThreadSpawn, :RevThreadPool,