]> Cypherpunks repositories - gostls13.git/commit
net/http/httputil: clarify the contract on ReverseProxy's Director.
authorMike Wiacek <mjwiacek@google.com>
Thu, 29 Dec 2016 00:15:35 +0000 (16:15 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 29 Dec 2016 22:29:47 +0000 (22:29 +0000)
commit9e199702c829d303ebe001a09c47aa4ec3b3ff81
treeb2443e5b26ac6fac3d54ac3b00aaecfec4476835
parent9719ca9c0e6fdda273cd178e6cce6b88d738518e
net/http/httputil: clarify the contract on ReverseProxy's Director.

Avoid potential race conditions by clarifying to implemntors of the
ReverseProxy interface, the lifetime of provided http.Request structs.

Fixes #18456
Change-Id: I46aa60322226ecc3a0d30fa1ef108e504171957a
Reviewed-on: https://go-review.googlesource.com/34720
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/httputil/reverseproxy.go