mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 22:20:18 +00:00
Replace custom proxy with httputil.ReverseProxy for kubecfg/kubectl.
Fixes #1149 - kubecfg proxy "411 Length Required" error on POST/PUT.
This commit is contained in:
@@ -260,7 +260,10 @@ func main() {
|
||||
open.Start("http://localhost:8001/static/")
|
||||
}()
|
||||
}
|
||||
server := kubecfg.NewProxyServer(*www, kubeClient)
|
||||
server, err := kubecfg.NewProxyServer(*www, clientConfig)
|
||||
if err != nil {
|
||||
glog.Fatalf("Error creating proxy server: %v", err)
|
||||
}
|
||||
glog.Fatal(server.Serve())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user