Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2 from dongsuo/main
Browse files Browse the repository at this point in the history
fix: unescape params
  • Loading branch information
nedpals authored Sep 10, 2023
2 parents 19249ee + 0c06f87 commit f17d8fd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,14 @@ func (b *QueryRequestBuilder) ExecuteWithContext(ctx context.Context, r interfac
if err != nil {
return err
}
query, err := url.QueryUnescape(b.params.Encode())

if err != nil {
return err
}

req.URL.RawQuery = query

req.URL.RawQuery = b.params.Encode()
req.Header = b.client.Headers()

// inject/override custom headers
Expand Down

0 comments on commit f17d8fd

Please sign in to comment.