Only send "100 Continue" when no body has been sent
commit7e36e29a69c4adb777e82a91a381bd680967c055
authorEric Wong <normalperson@yhbt.net>
Tue, 30 Jun 2009 04:24:59 +0000 (29 21:24 -0700)
committerEric Wong <normalperson@yhbt.net>
Tue, 30 Jun 2009 04:24:59 +0000 (29 21:24 -0700)
treeb659929812b9db47ef9a2e044b76de7ece82351c
parent516c4a8686911a3b6c5e1837d183cd6f515e877c
Only send "100 Continue" when no body has been sent

Under slow/inconsistent network conditions or overly aggressive
clients, there is a possibility we could've already started
reading the body.  In those cases, don't bother responding
to the expectation to continue since the client has already
started sending a message body.
lib/unicorn/http_request.rb