ACK clients on "Expect: 100-continue" header
commit516c4a8686911a3b6c5e1837d183cd6f515e877c
authorEric Wong <normalperson@yhbt.net>
Tue, 30 Jun 2009 02:21:34 +0000 (29 19:21 -0700)
committerEric Wong <normalperson@yhbt.net>
Tue, 30 Jun 2009 02:28:51 +0000 (29 19:28 -0700)
treed40a484cef552ebdae28d63de1f66b0049ba3596
parentec3ac2e4291026a3ebf687d7d0c45c34acac111e
ACK clients on "Expect: 100-continue" header

By responding with a "HTTP/1.1 100 Continue" response to
encourage a client to send the rest of the body.

This is part of the HTTP/1.1 standard but not often implemented
by servers:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8.2.3

This will speed up curl uploads since curl sleeps up to 1 second if
no response is received:
http://curl.haxx.se/docs/faq.html#My_HTTP_POST_or_PUT_requests_are
TODO
lib/unicorn/const.rb
lib/unicorn/http_request.rb