From: Brad Fitzpatrick Date: Wed, 14 Dec 2016 23:17:13 +0000 (+0000) Subject: net/http/httptrace: clarify WroteRequest may be called multiple times X-Git-Tag: go1.8beta2~13 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ffc836bcbbd8739865cda617d21d924e03844525;p=gostls13.git net/http/httptrace: clarify WroteRequest may be called multiple times Updates #18305 Change-Id: I63b28d511df1a6c54e32c8bfc7e2264f94e38cd7 Reviewed-on: https://go-review.googlesource.com/34386 Reviewed-by: Ian Lance Taylor --- diff --git a/src/net/http/httptrace/trace.go b/src/net/http/httptrace/trace.go index 3b7417911f..ea7b38c8fc 100644 --- a/src/net/http/httptrace/trace.go +++ b/src/net/http/httptrace/trace.go @@ -146,7 +146,8 @@ type ClientTrace struct { Wait100Continue func() // WroteRequest is called with the result of writing the - // request and any body. + // request and any body. It may be called multiple times + // in the case of retried requests. WroteRequest func(WroteRequestInfo) }