about summary refs log tree commit homepage
path: root/lib/unicorn/http_request.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-07-01 13:32:33 -0700
committerEric Wong <normalperson@yhbt.net>2009-07-01 13:35:27 -0700
commitec14a20474575e77a23b713ee8fcda1e71b1d018 (patch)
tree596f6dd814beffd9a7ee04ffa2000c6b6471370d /lib/unicorn/http_request.rb
parent563d03f649ef31d2aec3505cbbed1e015493b8fc (diff)
downloadunicorn-ec14a20474575e77a23b713ee8fcda1e71b1d018.tar.gz
This gives the app ability to deny clients with 417 instead of
blindly making the decision for the underlying application.  Of
course, apps must be made aware of this.
Diffstat (limited to 'lib/unicorn/http_request.rb')
-rw-r--r--lib/unicorn/http_request.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb
index 3df9120..ad1e23f 100644
--- a/lib/unicorn/http_request.rb
+++ b/lib/unicorn/http_request.rb
@@ -89,9 +89,6 @@ module Unicorn
     # returns a Rack environment if successful
     def handle_body(socket)
       PARAMS[Const::RACK_INPUT] = if (body = PARAMS.delete(:http_body))
-        if 0 == body.size && /\A100-continue\z/i =~ PARAMS[Const::HTTP_EXPECT]
-          socket.write(Const::EXPECT_100_RESPONSE)
-        end
         length = PARAMS[Const::CONTENT_LENGTH].to_i
 
         if te = PARAMS[Const::HTTP_TRANSFER_ENCODING]