about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/unicorn/http_request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb
index d2fdac8..a6ed7c9 100644
--- a/lib/unicorn/http_request.rb
+++ b/lib/unicorn/http_request.rb
@@ -95,7 +95,7 @@ module Unicorn
         length = PARAMS[Const::CONTENT_LENGTH].to_i
 
         if te = PARAMS[Const::HTTP_TRANSFER_ENCODING]
-          if /chunked/i =~ te
+          if /\Achunked\z/i =~ te
             socket = ChunkedReader.new(socket, body)
             length = body = nil
           end