aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthan Lowman <ethan.l.527@gmail.com>2023-02-03 13:35:28 -0500
committerGopher Robot <gobot@golang.org>2023-02-04 04:11:32 +0000
commit32284526c8040f59da6d487cf2c976be3ca8798c (patch)
tree72746df87ada74ae4230d76a6b0ef03c419867b2
parent82e046535571c121b836bc2425f0fc8d5cc0b80b (diff)
downloadgo-32284526c8040f59da6d487cf2c976be3ca8798c.tar.xz
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 <dmitshur@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Damien Neil <dneil@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Damien Neil <dneil@google.com>
-rw-r--r--src/net/http/httputil/reverseproxy.go2
1 files changed, 1 insertions, 1 deletions
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) {