Fix depracation message

This commit is contained in:
Dan Milne
2022-08-10 12:02:45 +10:00
parent 6105ea621c
commit 761df379cf

View File

@@ -111,7 +111,7 @@ module Paapi
headers['Content-Type'] = 'application/json; charset=utf-8' headers['Content-Type'] = 'application/json; charset=utf-8'
unless @http.nil? unless @http.nil?
Response.new( @http.headers(headers).post(endpoint, json: payload ) ) Response.new( @http.with_headers(headers).post(endpoint, json: payload ) )
else else
Response.new( Client.post(url: endpoint, body: payload, headers: headers)) Response.new( Client.post(url: endpoint, body: payload, headers: headers))
end end