Browse Source

fix: finding http to https

anxgang 3 years ago
parent
commit
67f528da99
2 changed files with 3 additions and 3 deletions
  1. 2 2
      lib/ebaytr.rb
  2. 1 1
      lib/ebaytr/version.rb

+ 2 - 2
lib/ebaytr.rb

@@ -121,11 +121,11 @@ module Ebaytr
   end
 
   def self.finding(request_name,hash = {})
-    api_url = "http://svcs.ebay.com/services/search/FindingService/v1"
+    api_url = "https://svcs.ebay.com/services/search/FindingService/v1"
 
     url = URI.parse(api_url)
     https = Net::HTTP.new(url.host,url.port)
-    # https.use_ssl = true
+    https.use_ssl = true
     req = Net::HTTP::Post.new(url.path)
     req.add_field("X-EBAY-SOA-SECURITY-APPNAME", @@app_name)
     req.add_field("X-EBAY-SOA-OPERATION-NAME", request_name)

+ 1 - 1
lib/ebaytr/version.rb

@@ -1,3 +1,3 @@
 module Ebaytr
-  VERSION = "1.3.5"
+  VERSION = "1.3.6"
 end