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/http_server.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rainbows/http_server.rb') 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) -- cgit v1.2.3-24-ge0c7