未验证 提交 1d48ca34 编写于 作者: Z zryfish 提交者: GitHub

fix ws authorization bug (#2059)

上级 dcd341e7
......@@ -47,6 +47,7 @@ func WithKubeAPIServer(handler http.Handler, config *rest.Config, failed proxy.E
// make sure we don't override kubernetes's authorization
req.Header.Del("Authorization")
httpProxy := proxy.NewUpgradeAwareHandler(&s, defaultTransport, true, false, failed)
httpProxy.UpgradeTransport = proxy.NewUpgradeRequestRoundTripper(defaultTransport, defaultTransport)
httpProxy.ServeHTTP(w, req)
return
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册