Skip to content

Commit

Permalink
Merge 73717aa into 8aa7271
Browse files Browse the repository at this point in the history
  • Loading branch information
gingermusketeer committed Jul 5, 2018
2 parents 8aa7271 + 73717aa commit 8e38fdd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/unleash/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def register

uri = URI(Unleash.configuration.client_register_url)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true if uri.scheme == 'https'
http.open_timeout = Unleash.configuration.timeout # in seconds
http.read_timeout = Unleash.configuration.timeout # in seconds
headers = {'Content-Type' => 'application/json'}
Expand Down
3 changes: 2 additions & 1 deletion lib/unleash/metrics_reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def send

uri = URI(Unleash.configuration.client_metrics_url)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true if uri.scheme == 'https'
http.open_timeout = Unleash.configuration.timeout # in seconds
http.read_timeout = Unleash.configuration.timeout # in seconds
headers = {'Content-Type' => 'application/json'}
Expand All @@ -58,4 +59,4 @@ def send

end
end
end
end
3 changes: 2 additions & 1 deletion lib/unleash/toggle_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def fetch

uri = URI(Unleash.configuration.fetch_toggles_url)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true if uri.scheme == 'https'
http.open_timeout = Unleash.configuration.timeout # in seconds
http.read_timeout = Unleash.configuration.timeout # in seconds
request = Net::HTTP::Get.new(uri.request_uri)
Expand Down Expand Up @@ -141,4 +142,4 @@ def read!
end
end
end
end
end

0 comments on commit 8e38fdd

Please sign in to comment.