Skip to content

Commit

Permalink
fixed for issue #1 Headers a case sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
MattG committed Apr 26, 2010
1 parent ff3146c commit 68eb592
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
@@ -1,6 +1,8 @@
dir = File.dirname(__FILE__)
require dir + '/paypal_adaptive_payments/exceptions.rb'
require dir + '/paypal_adaptive_payments/adaptive_payment_response.rb'
require dir + '/paypal_adaptive_payments/ext.rb'
require dir + '/paypal_adaptive_payments/version.rb'

module ActiveMerchant #:nodoc:
module Billing #:nodoc:
Expand Down
@@ -0,0 +1,14 @@
module Net
module HTTPHeader

#fix for case sensitive headers in paypal (issue #1)
def []= key, val
unless val
@header.delete key
return val
end
@header[key] = [val]
end

end
end
@@ -0,0 +1,10 @@
module ActiveMerchant
module Billing
class PaypalAdaptivePaymentGateway < Gateway # :nodoc
def version
{:major => 0, :minor => 1, :patchlevel => 3}
end
end
end

end

0 comments on commit 68eb592

Please sign in to comment.