Skip to content

Commit

Permalink
fix: URL encode parameters for HAL templated URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Apr 7, 2021
1 parent c9b64c3 commit 764a0fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/client/base_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def url_for_relation relation_name, params
if relation
url = relation['href']
params.each do | (key, value) |
url = url.gsub("{#{key}}", value)
url = url.gsub("{#{key}}", encode_param(value))
end
url
else
Expand Down

0 comments on commit 764a0fa

Please sign in to comment.