Skip to content

Commit

Permalink
fix: use the decoded path info rather than the encoded one when creat…
Browse files Browse the repository at this point in the history
…ing the pact info
  • Loading branch information
bethesque committed Oct 10, 2021
1 parent 3458c9e commit dd30a1a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/pact_broker/api/resources/default_base_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def params_with_string_keys
end

def pact_params
@pact_params ||= PactBroker::Pacts::PactParams.from_request request, path_info
@pact_params ||= PactBroker::Pacts::PactParams.from_request request, identifier_from_path
end

def set_json_error_message message
Expand Down
2 changes: 1 addition & 1 deletion lib/pact_broker/api/resources/metadata_resource_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module MetadataResourceMethods
using PactBroker::HashRefinements

def pact_params
@pact_params ||= PactBroker::Pacts::PactParams.from_request(request, maybe_params_with_consumer_version_number.merge(path_info))
@pact_params ||= PactBroker::Pacts::PactParams.from_request(request, maybe_consumer_version_number_param.merge(identifier_from_path))
end

def maybe_consumer_version_number_param
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def pact
end

def pact_params
@pact_params ||= PactBroker::Pacts::PactParams.from_request request, path_info
@pact_params ||= PactBroker::Pacts::PactParams.from_request request, identifier_from_path
end

def policy_name
Expand Down

0 comments on commit dd30a1a

Please sign in to comment.