From: Brad Fitzpatrick Date: Sat, 22 Oct 2016 13:39:12 +0000 (-0700) Subject: net/http: document Transport.ExpectContinueTimeout a bit more X-Git-Tag: go1.8beta1~714 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ece4e23d9aaed3e11f7a0b9a3f15c592c96b065d;p=gostls13.git net/http: document Transport.ExpectContinueTimeout a bit more Fixes #16003 Change-Id: I76a8da24b9944647ec40ef2ca4fc93c175ff5a25 Reviewed-on: https://go-review.googlesource.com/31723 Reviewed-by: Ian Lance Taylor --- diff --git a/src/net/http/transport.go b/src/net/http/transport.go index 429f667c14..bce9e34de1 100644 --- a/src/net/http/transport.go +++ b/src/net/http/transport.go @@ -158,7 +158,9 @@ type Transport struct { // ExpectContinueTimeout, if non-zero, specifies the amount of // time to wait for a server's first response headers after fully // writing the request headers if the request has an - // "Expect: 100-continue" header. Zero means no timeout. + // "Expect: 100-continue" header. Zero means no timeout and + // causes the body to be sent immediately, without + // waiting for the server to approve. // This time does not include the time to send the request header. ExpectContinueTimeout time.Duration