./lib/ews/transporter.rb in exact4r-1.0 vs ./lib/ews/transporter.rb in exact4r-1.1

- old
+ new

@@ -29,12 +29,10 @@ # basis, if you choose to do so, by specifying it as a parameter to the <tt>submit</tt> method. def initialize(url = "https://api.e-xact.com", options = {}) @url = URI.parse(url.gsub(/\/$/,'')) @transport_type = options[:transport_type] || :rest - debugger - @@issuer_cert ||= File.dirname(__FILE__)+"/../../certs/equifax_ca.cer" @@server_cert ||= File.new(File.dirname(__FILE__)+"/../../certs/exact.cer").read end # Submit a transaction request to the server @@ -52,10 +50,10 @@ transport_details = @@transport_types[transport_type] request = build_http_request(transaction, transport_type, transport_details[:suffix]) request.basic_auth(transaction.gateway_id, transaction.password) request.add_field "Accept", transport_details[:content_type] - request.add_field "User-Agent", "exact4r v1.0" + request.add_field "User-Agent", "exact4r v1.1" request.add_field "Content-type", "#{transport_details[:content_type]}; charset=UTF-8" response = get_connection.request(request) case response