lib/geocoder/lookups/maxmind_geoip2.rb in geocoder-1.2.8 vs lib/geocoder/lookups/maxmind_geoip2.rb in geocoder-1.2.9

- old
+ new

@@ -6,13 +6,13 @@ def name "MaxMind GeoIP2" end - def use_ssl? - # Maxmind's GeoIP2 Precision Services only supports HTTPS, - # otherwise a `404 Not Found` HTTP response will be returned - true + # Maxmind's GeoIP2 Precision Services only supports HTTPS, + # otherwise a `404 Not Found` HTTP response will be returned + def supported_protocols + [:https] end def query_url(query) "#{protocol}://geoip.maxmind.com/geoip/v2.1/#{configured_service!}/#{URI.escape(query.sanitized_text.strip)}" end