kopia lustrzana https://github.com/bugout-dev/moonstream
Merge pull request #1136 from moonstream-to/fix-nb-header-duplications
Removed nb headers duplicationpull/1137/head
commit
93a0faf594
|
@ -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{
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
package main
|
||||
|
||||
var NB_VERSION = "0.2.5"
|
||||
var NB_VERSION = "0.2.6"
|
||||
|
|
Ładowanie…
Reference in New Issue