Skip to content

Commit

Permalink
Clearing headers before setting with QueryParams for compability with…
Browse files Browse the repository at this point in the history
… old behavior
  • Loading branch information
Lucas Hinderberger committed Jul 9, 2024
1 parent 2aa7a03 commit 31ed51f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/lib/api/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ func (request Request) buildHttpRequest() (req *http.Request, err error) {
}

for key, val := range request.QueryParams {
q.Del(key)

err = addToQuery(key, val)
if err != nil {
return req, err
Expand Down

0 comments on commit 31ed51f

Please sign in to comment.