summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-06-29 22:27:44 -0700
committerEric Wong <normalperson@yhbt.net>2009-06-29 22:27:44 -0700
commit86cd3fec9a02352d10b53bac02f98267d2b77bdd (patch)
tree30a7ba832bc3d8db03b429c29fbcd0be6f3fee8d
parent7e36e29a69c4adb777e82a91a381bd680967c055 (diff)
Don't allow misbehaving clients to mispell "chunked"
-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