lib/active_merchant/billing/gateways/pay_secure.rb in activemerchant-1.4.2 vs lib/active_merchant/billing/gateways/pay_secure.rb in activemerchant-1.5.0

- old
+ new

@@ -98,10 +98,10 @@ successful?(response) ? SUCCESS_MESSAGE : response[:errorstring] end def parse(body) response = {} - body.collect do |l| + body.to_s.each_line do |l| key, value = l.split(":", 2) response[key.to_s.downcase.to_sym] = value.strip end response end