diff options
Diffstat (limited to 'lib/unicorn/http_request.rb')
-rw-r--r-- | lib/unicorn/http_request.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb index b1cd8ed..b2c72f3 100644 --- a/lib/unicorn/http_request.rb +++ b/lib/unicorn/http_request.rb @@ -22,7 +22,6 @@ module Unicorn } NULL_IO = StringIO.new(Z) - DECHUNKER = ChunkedReader.new LOCALHOST = '127.0.0.1'.freeze # Being explicitly single-threaded, we have certain advantages in @@ -93,7 +92,7 @@ module Unicorn if te = PARAMS[Const::HTTP_TRANSFER_ENCODING] if /chunked/i =~ te - socket = DECHUNKER.reopen(socket, body) + socket = ChunkedReader.new(socket, body) length = body = nil end end |