diff --git a/lib/tire/http/clients/curb.rb b/lib/tire/http/clients/curb.rb index 6ff89f9d..6bf8b950 100644 --- a/lib/tire/http/clients/curb.rb +++ b/lib/tire/http/clients/curb.rb @@ -38,9 +38,13 @@ def self.post(url, data) Response.new client.body_str, client.response_code end + # NOTE: newrelic_rpm breaks Curl::Easy#http_put + # https://github.com/newrelic/rpm/blob/master/lib/new_relic/agent/instrumentation/curb.rb#L49 + # def self.put(url, data) + method = client.respond_to?(:http_put_without_newrelic) ? :http_put_without_newrelic : :http_put client.url = url - client.http_put data + client.send method, data Response.new client.body_str, client.response_code end