lib/paddle/client.rb in paddle-2.0.0 vs lib/paddle/client.rb in paddle-2.1.0
- old
+ new
@@ -6,10 +6,11 @@
def connection
@connection ||= Faraday.new(Paddle.config.url) do |conn|
conn.request :authorization, :Bearer, Paddle.config.api_key
conn.headers = {
- "User-Agent" => "paddle/v#{VERSION} (github.com/deanpcmad/paddle)"
+ "User-Agent" => "paddle/v#{VERSION} (github.com/deanpcmad/paddle)",
+ "Paddle-Version" => Paddle.config.version.to_s
}
conn.request :json
conn.response :json, content_type: "application/json"