Skip to content

Commit

Permalink
Don't overwrite query in realm for token exchange (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjohnsonjr authored Aug 24, 2020
1 parent cecf390 commit b6430e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/v1/remote/transport/bearer.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ func (bt *bearerTransport) refreshBasic() ([]byte, error) {
}
client := http.Client{Transport: b}

u.RawQuery = url.Values{
"scope": bt.scopes,
"service": []string{bt.service},
}.Encode()
v := u.Query()
v["scope"] = bt.scopes
v.Set("service", bt.service)
u.RawQuery = v.Encode()

resp, err := client.Get(u.String())
if err != nil {
Expand Down

0 comments on commit b6430e8

Please sign in to comment.