diff --git a/nodebalancer/cmd/nodebalancer/server.go b/nodebalancer/cmd/nodebalancer/server.go index e8a0cdc1..cdc53fd2 100644 --- a/nodebalancer/cmd/nodebalancer/server.go +++ b/nodebalancer/cmd/nodebalancer/server.go @@ -214,6 +214,15 @@ func Server() { // Change r.Host from nodebalancer's to end host so TLS check will be passed r.Host = r.URL.Host } + + proxyToEndpoint.ModifyResponse = func(w *http.Response) error { + // Remove proxy headers + for k := range w.Header { + w.Header.Del(k) + } + return nil + } + proxyErrorHandler(proxyToEndpoint, endpoint) blockchainPool.AddNode(&Node{ diff --git a/nodebalancer/cmd/nodebalancer/version.go b/nodebalancer/cmd/nodebalancer/version.go index dd47a51c..c7f6ddf2 100644 --- a/nodebalancer/cmd/nodebalancer/version.go +++ b/nodebalancer/cmd/nodebalancer/version.go @@ -1,3 +1,3 @@ package main -var NB_VERSION = "0.2.5" +var NB_VERSION = "0.2.6"