Closed
Description
The HTTP/2 client prefers Request.Host over Request.URL.Host:
Lines 7947 to 7954 in a0d6420
ReverseProxy's default Director only sets Request.URL.Host, and not Request.Host, so the request would get proxied to the same host, rather than the proxy target. This resulted in an infinite loop on golang.org (see Issue #28134).
go/src/net/http/httputil/reverseproxy.go
Lines 105 to 121 in a0d6420