From: Ethan Lowman Date: Fri, 3 Feb 2023 18:35:28 +0000 (-0500) Subject: net/http/httputil: fix syntax in ReverseProxy example comment X-Git-Tag: go1.21rc1~1651 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=32284526c8040f59da6d487cf2c976be3ca8798c;p=gostls13.git net/http/httputil: fix syntax in ReverseProxy example comment Change-Id: I7e71626246af94047fbd1abb9bb77f2cd9b281fb Reviewed-on: https://go-review.googlesource.com/c/go/+/465195 Reviewed-by: Dmitri Shuralyov Auto-Submit: Dmitri Shuralyov Reviewed-by: Damien Neil TryBot-Result: Gopher Robot Run-TryBot: Damien Neil --- diff --git a/src/net/http/httputil/reverseproxy.go b/src/net/http/httputil/reverseproxy.go index 58064a5332..eece455ac6 100644 --- a/src/net/http/httputil/reverseproxy.go +++ b/src/net/http/httputil/reverseproxy.go @@ -257,7 +257,7 @@ func joinURLPath(a, b *url.URL) (path, rawpath string) { // Rewrite: func(r *ProxyRequest) { // r.SetURL(target) // r.Out.Host = r.In.Host // if desired -// } +// }, // } func NewSingleHostReverseProxy(target *url.URL) *ReverseProxy { director := func(req *http.Request) {