diff --git a/CHANGELOG.md b/CHANGELOG.md index 976ec21..f747d6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ * Add CGI as dependency for Ruby 3.5+ * Add batch capability to Phone Numbers verification +* Don't enforce ssl as part of Net::HTTP configuration # Addressfinder 1.15.0 (March 2025) # diff --git a/lib/addressfinder/http.rb b/lib/addressfinder/http.rb index c53eb3a..7a77602 100644 --- a/lib/addressfinder/http.rb +++ b/lib/addressfinder/http.rb @@ -64,9 +64,9 @@ def net_http config.proxy_password) http.open_timeout = config.timeout http.read_timeout = config.timeout - http.use_ssl = true + http.use_ssl = config.port == 443 http end end end -end \ No newline at end of file +end