Add tunnelling to the proxy API handler.

This commit is contained in:
Brendan Burns
2015-05-27 19:34:31 -07:00
committed by CJ Cullen
parent 82afaaf31d
commit 631cf34d40

View File

@@ -119,6 +119,9 @@ func (r *ProxyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
httpCode = http.StatusNotFound httpCode = http.StatusNotFound
return return
} }
// TODO: make this dynamic
location.Host = "localhost"
location.Scheme = "http"
// Default to http // Default to http
if location.Scheme == "" { if location.Scheme == "" {