lib/datadog/ci/transport/api/agentless.rb in datadog-ci-1.0.0.beta3 vs lib/datadog/ci/transport/api/agentless.rb in datadog-ci-1.0.0.beta6

- old
+ new

@@ -24,26 +24,34 @@ end def api_request(path:, payload:, headers: {}, verb: "post") super - perform_request(@api_http, path: path, payload: payload, headers: headers, verb: verb) + perform_request( + @api_http, + path: path, + payload: payload, + headers: headers, + verb: verb, + accept_compressed_response: true + ) end def citestcov_request(path:, payload:, headers: {}, verb: "post") super(path: path, payload: payload, headers: headers, verb: verb) perform_request(@citestcov_http, path: path, payload: @citestcov_payload, headers: headers, verb: verb) end private - def perform_request(http_client, path:, payload:, headers:, verb:) + def perform_request(http_client, path:, payload:, headers:, verb:, accept_compressed_response: false) http_client.request( path: path, payload: payload, headers: headers_with_default(headers), - verb: verb + verb: verb, + accept_compressed_response: accept_compressed_response ) end def build_http_client(url, compress:) uri = URI.parse(url)