diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-06-29 22:27:44 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-06-29 22:27:44 -0700 |
commit | 86cd3fec9a02352d10b53bac02f98267d2b77bdd (patch) | |
tree | 30a7ba832bc3d8db03b429c29fbcd0be6f3fee8d /lib/unicorn/http_request.rb | |
parent | 7e36e29a69c4adb777e82a91a381bd680967c055 (diff) | |
download | unicorn-86cd3fec9a02352d10b53bac02f98267d2b77bdd.tar.gz |
Don't allow misbehaving clients to mispell "chunked"
Diffstat (limited to 'lib/unicorn/http_request.rb')
-rw-r--r-- | lib/unicorn/http_request.rb | 2 |
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 |