You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ReverseProxy.ServeHTTP performs a shallow copy of the incoming request. This includes just copying the pointer of req.URL to outreq.URL. The director is likely to mutate that request URL, which can lead to mismatched pre/post logging.
Workaround: Copy the url.URL within a custom director.
What version of Go are you using (go version)?
go version go1.8.1 darwin/amd64
What operating system and processor architecture are you using (go env)?
The
ReverseProxy.ServeHTTP
performs a shallow copy of the incoming request. This includes just copying the pointer ofreq.URL
tooutreq.URL
. Thedirector
is likely to mutate that request URL, which can lead to mismatched pre/post logging.Workaround: Copy the
url.URL
within a custom director.What version of Go are you using (
go version
)?go version go1.8.1 darwin/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: