Commit 631cf34d authored by Brendan Burns's avatar Brendan Burns Committed by CJ Cullen

Add tunnelling to the proxy API handler.

parent 82afaaf3
......@@ -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 == "" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment