Skip to content

Commit

Permalink
fix: add missing params_hash_type? from Rack
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Nov 6, 2020
1 parent e7ed5de commit 3195b0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/pact/consumer_contract/query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ def self.normalize_params(params, name, v)
params
end

def self.params_hash_type?(obj)
obj.is_a?(Hash)
end

def self.unescape(s, encoding = Encoding::UTF_8)
URI.decode_www_form_component(s, encoding)
end
Expand Down

0 comments on commit 3195b0a

Please sign in to comment.