Add tunnelling to the proxy API handler.
This commit is contained in:
@@ -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 == "" {
|
||||||
|
Reference in New Issue
Block a user