]> Cypherpunks repositories - gostls13.git/commit
net/http/httputil: deprecate ReverseProxy.Director
authorDamien Neil <dneil@google.com>
Thu, 2 Oct 2025 16:42:57 +0000 (09:42 -0700)
committerDamien Neil <dneil@google.com>
Thu, 2 Oct 2025 19:53:31 +0000 (12:53 -0700)
commit53845004d647e16b3de7c74e50cffaca77e028e9
treedd8eaedddeab5840178434af854803e5b23e371c
parentbbdff9e8e1fca772a13acb0c4c7828cfe246d403
net/http/httputil: deprecate ReverseProxy.Director

The Director function has been superseded by Rewrite.
Rewrite avoids fundamental security issues with hop-by-hop header
handling in the Director API and has better default handling
of X-Forwarded-* headers.

Fixes #73161

Change-Id: Iadaf3070e0082458f79fb892ade51cb7ce832802
Reviewed-on: https://go-review.googlesource.com/c/go/+/708615
Reviewed-by: Nicholas Husin <husin@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Nicholas Husin <nsh@golang.org>
api/next/73161.txt [new file with mode: 0644]
doc/next/6-stdlib/99-minor/net/http/httputil/73161.md [new file with mode: 0644]
src/net/http/httputil/reverseproxy.go