From 631cf34d40c78f8082d62d8e22b36e2369f48953 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Wed, 27 May 2015 19:34:31 -0700 Subject: [PATCH] Add tunnelling to the proxy API handler. --- pkg/apiserver/proxy.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/apiserver/proxy.go b/pkg/apiserver/proxy.go index 9dab573dc82..8609da4e442 100644 --- a/pkg/apiserver/proxy.go +++ b/pkg/apiserver/proxy.go @@ -119,6 +119,9 @@ func (r *ProxyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { httpCode = http.StatusNotFound return } + // TODO: make this dynamic + location.Host = "localhost" + location.Scheme = "http" // Default to http if location.Scheme == "" {