public
Description: Shipping API extension for Active Merchant.
Clone URL: git://github.com/Shopify/active_shipping.git
Sync posts_data.rb with ActiveMerchant
Cody Fauser (author)
Fri Jul 04 15:15:55 -0700 2008
commit  2842d7fa3d83f6c898f5054c67a80575b12ae167
tree    3a3666b57aa55beb49c997ab881d8be8372e46b3
parent  9c5098ebfe2943e37596672208110a1f6789628a
...
 
1
...
1
2
0
@@ -1 +1,2 @@
0
+* Sync posts_data.rb with ActiveMerchant [cody]
0
 * Don't use credentials fixtures in local tests [cody]
...
11
12
13
14
 
15
16
17
...
22
23
24
 
 
 
25
26
27
...
11
12
13
 
14
15
16
17
...
22
23
24
25
26
27
28
29
30
0
@@ -11,7 +11,7 @@ module ActiveMerchant #:nodoc:
0
     READ_TIMEOUT = 60
0
     
0
     def self.included(base)
0
- base.class_inheritable_accessor :ssl_strict
0
+ base.superclass_delegating_accessor :ssl_strict
0
       base.ssl_strict = true
0
       
0
       base.class_inheritable_accessor :pem_password
0
@@ -22,6 +22,9 @@ module ActiveMerchant #:nodoc:
0
     end
0
     
0
     def ssl_post(url, data, headers = {})
0
+ # Ruby 1.8.4 doesn't automatically set this header
0
+ headers['Content-Type'] ||= "application/x-www-form-urlencoded"
0
+
0
       uri = URI.parse(url)
0
 
0
       http = Net::HTTP.new(uri.host, uri.port)

Comments

    No one has commented yet.