From 761df379cfdacb3aebe997c7c0c2c6c198527d19 Mon Sep 17 00:00:00 2001 From: Dan Milne Date: Wed, 10 Aug 2022 12:02:45 +1000 Subject: [PATCH] Fix depracation message --- lib/paapi/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/paapi/client.rb b/lib/paapi/client.rb index a5e9434..0714885 100644 --- a/lib/paapi/client.rb +++ b/lib/paapi/client.rb @@ -111,7 +111,7 @@ module Paapi headers['Content-Type'] = 'application/json; charset=utf-8' unless @http.nil? - Response.new( @http.headers(headers).post(endpoint, json: payload ) ) + Response.new( @http.with_headers(headers).post(endpoint, json: payload ) ) else Response.new( Client.post(url: endpoint, body: payload, headers: headers)) end