From a3a61701e2cee5b1302ddf2c02dbfcb291522c64 Mon Sep 17 00:00:00 2001 From: Mark Holt <135143369+mh0lt@users.noreply.github.com> Date: Fri, 22 Dec 2023 10:48:25 +0000 Subject: [PATCH] Allow proxy paths in Heimdall URL (#8940) Add paths to the hiemdall config URL when creating calls so that extra paths needs by, for example proxy servers are not stripped from the flag value passed into the process. --- consensus/bor/heimdall/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consensus/bor/heimdall/client.go b/consensus/bor/heimdall/client.go index 0cade4f0417..b0edb53c108 100644 --- a/consensus/bor/heimdall/client.go +++ b/consensus/bor/heimdall/client.go @@ -8,6 +8,7 @@ import ( "io" "net/http" "net/url" + "path" "sort" "strings" "time" @@ -422,7 +423,7 @@ func makeURL(urlString, rawPath, rawQuery string) (*url.URL, error) { return nil, err } - u.Path = rawPath + u.Path = path.Join(u.Path, rawPath) u.RawQuery = rawQuery return u, err