]> Cypherpunks repositories - gostls13.git/commitdiff
net/http/httputil: fix syntax in ReverseProxy example comment
authorEthan Lowman <ethan.l.527@gmail.com>
Fri, 3 Feb 2023 18:35:28 +0000 (13:35 -0500)
committerGopher Robot <gobot@golang.org>
Sat, 4 Feb 2023 04:11:32 +0000 (04:11 +0000)
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>

src/net/http/httputil/reverseproxy.go

index 58064a53322627d393d9d183681b21524c99b480..eece455ac600b4351d93140dc9ba7b04719d94e0 100644 (file)
@@ -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) {