Skip to content

Commit

Permalink
feat: do not accept gzip responses when VERBOSE=true
Browse files Browse the repository at this point in the history
As it makes it very hard to debug
  • Loading branch information
bethesque committed Aug 29, 2023
1 parent 7b647f7 commit a72a529
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/pact_broker/client/hal/http_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def create_request uri, http_method, body = nil, headers = {}
request['Content-Type'] ||= "application/json" if ['Post', 'Put'].include?(http_method)
request['Content-Type'] ||= "application/merge-patch+json" if ['Patch'].include?(http_method)
request['Accept'] = "application/hal+json"
request['Accept-Encoding'] = nil if verbose?
headers.each do | key, value |
request[key] = value
end
Expand Down

0 comments on commit a72a529

Please sign in to comment.