Skip to content

Commit

Permalink
Allow proxy paths in Heimdall URL (#8940)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mh0lt committed Dec 22, 2023
1 parent 64072ce commit a3a6170
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion consensus/bor/heimdall/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"io"
"net/http"
"net/url"
"path"
"sort"
"strings"
"time"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a3a6170

Please sign in to comment.