Skip to content

Commit 9776d02

Browse files
committed
net/http: clarify when it's allowed to reuse a Request
Fixes #21780 Change-Id: Ic6fb6a536fff800a05be2d25309f72092604a785 Reviewed-on: https://go-review.googlesource.com/122817 Reviewed-by: Andrew Bonventre <[email protected]>
1 parent d49572e commit 9776d02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/net/http/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ type RoundTripper interface {
129129
// RoundTrip should not modify the request, except for
130130
// consuming and closing the Request's Body. RoundTrip may
131131
// read fields of the request in a separate goroutine. Callers
132-
// should not mutate the request until the Response's Body has
133-
// been closed.
132+
// should not mutate or reuse the request until the Response's
133+
// Body has been closed.
134134
//
135135
// RoundTrip must always close the body, including on errors,
136136
// but depending on the implementation may do so in a separate

0 commit comments

Comments
 (0)