Skip to content

Commit

Permalink
httptransport: fix LatestUpdateOperations method
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Zmeskal <jzmeskal@redhat.com>
  • Loading branch information
Jan Zmeskal authored and ldelossa committed Apr 27, 2021
1 parent 1f9b565 commit 9e67501
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion httptransport/client/matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"net/http"
"net/url"
"strings"
"sync"

Expand Down Expand Up @@ -151,7 +152,9 @@ func (c *HTTP) LatestUpdateOperations(ctx context.Context) (map[string][]driver.
if err != nil {
return nil, err
}
u.Query().Add("latest", "true")
v := url.Values{}
v.Add("latest", "true")
u.RawQuery = v.Encode()

req, err := http.NewRequestWithContext(ctx, http.MethodGet, u.String(), nil)
if err != nil {
Expand Down

0 comments on commit 9e67501

Please sign in to comment.