diff options
| author | Ethan Lowman <ethan.l.527@gmail.com> | 2023-02-03 13:35:28 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-02-04 04:11:32 +0000 |
| commit | 32284526c8040f59da6d487cf2c976be3ca8798c (patch) | |
| tree | 72746df87ada74ae4230d76a6b0ef03c419867b2 /src/net/http/httputil/reverseproxy.go | |
| parent | 82e046535571c121b836bc2425f0fc8d5cc0b80b (diff) | |
| download | go-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>
Diffstat (limited to 'src/net/http/httputil/reverseproxy.go')
| -rw-r--r-- | src/net/http/httputil/reverseproxy.go | 2 |
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) { |
