From e9a229c639dd6bda08a3fa8ce14af3688dc2ba63 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 3 May 2011 01:15:37 +0000 Subject: s/max_bytes/client_max_body_size/ for consistency Too confusing otherwise... --- lib/rainbows/max_body.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rainbows/max_body.rb') 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, -- cgit v1.2.3-24-ge0c7