mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-31 22:59:34 +00:00
Don't follow redirects with spdy
Kubernetes-commit: e1069c64956a43f628d8ae2fcd9107959747c1c6
This commit is contained in:
committed by
Kubernetes Publisher
parent
b307538aa1
commit
8c38cf359a
@@ -44,11 +44,9 @@ func RoundTripperFor(config *restclient.Config) (http.RoundTripper, Upgrader, er
|
|||||||
proxy = config.Proxy
|
proxy = config.Proxy
|
||||||
}
|
}
|
||||||
upgradeRoundTripper := spdy.NewRoundTripperWithConfig(spdy.RoundTripperConfig{
|
upgradeRoundTripper := spdy.NewRoundTripperWithConfig(spdy.RoundTripperConfig{
|
||||||
TLS: tlsConfig,
|
TLS: tlsConfig,
|
||||||
FollowRedirects: true,
|
Proxier: proxy,
|
||||||
RequireSameHostRedirects: false,
|
PingPeriod: time.Second * 5,
|
||||||
Proxier: proxy,
|
|
||||||
PingPeriod: time.Second * 5,
|
|
||||||
})
|
})
|
||||||
wrapper, err := restclient.HTTPWrappersForConfig(config, upgradeRoundTripper)
|
wrapper, err := restclient.HTTPWrappersForConfig(config, upgradeRoundTripper)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user