lib/rubyflare/connect.rb in rubyflare-0.1.0 vs lib/rubyflare/connect.rb in rubyflare-0.2.0
- old
+ new
@@ -15,9 +15,10 @@
options = options.to_json unless method_name == :get
response = Curl.send(method_name, API_URL + endpoint, options) do |http|
http.headers['X-Auth-Email'] = @email
http.headers['X-Auth-Key'] = @api_key
http.headers['Content-Type'] = 'application/json'
+ http.headers['User-Agent'] = "Rubyflare/#{Rubyflare::VERSION}"
end
@response = Rubyflare::Response.new(method_name, endpoint, response.body_str)
end
end
end