./lib/ews/transporter.rb in exact4r-0.7 vs ./lib/ews/transporter.rb in exact4r-0.8
- old
+ new
@@ -50,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", "Ruby"
+ request.add_field "User-Agent", "exact4r v0.7"
request.add_field "Content-type", "#{transport_details[:content_type]}; charset=UTF-8"
response = get_connection.request(request)
case response