Don't follow redirects with spdy

Kubernetes-commit: e1069c64956a43f628d8ae2fcd9107959747c1c6
This commit is contained in:
Tim Allclair 2022-03-04 16:08:58 -08:00 committed by Kubernetes Publisher
parent b307538aa1
commit 8c38cf359a

View File

@ -44,11 +44,9 @@ func RoundTripperFor(config *restclient.Config) (http.RoundTripper, Upgrader, er
proxy = config.Proxy
}
upgradeRoundTripper := spdy.NewRoundTripperWithConfig(spdy.RoundTripperConfig{
TLS: tlsConfig,
FollowRedirects: true,
RequireSameHostRedirects: false,
Proxier: proxy,
PingPeriod: time.Second * 5,
TLS: tlsConfig,
Proxier: proxy,
PingPeriod: time.Second * 5,
})
wrapper, err := restclient.HTTPWrappersForConfig(config, upgradeRoundTripper)
if err != nil {