Add tunnelling to the proxy API handler.

pull/6/head
Brendan Burns 2015-05-27 19:34:31 -07:00 committed by CJ Cullen
parent 82afaaf31d
commit 631cf34d40
1 changed files with 3 additions and 0 deletions

View File

@ -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 == "" {