Skip to content

Commit

Permalink
enable article sync via https
Browse files Browse the repository at this point in the history
  • Loading branch information
lentschi committed Jun 23, 2023
1 parent b8574ee commit a4316a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/supplier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def read_from_remote(search_params = {})
url = URI(self.supplier_remote_source)
url.query = URI.encode_www_form(search_params) unless search_params.nil?
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = url.scheme == 'https'
request = Net::HTTP::Get.new(url)

response = http.request(request)
Expand Down

0 comments on commit a4316a1

Please sign in to comment.