]> git.openstreetmap.org Git - rails.git/blobdiff - lib/osm.rb
Remove script sources which are no longer needed by iD
[rails.git] / lib / osm.rb
index 66428c13cdca3ef28935f9fe763d455309f74e92..841cce17b8f49dba022de129d7d50b04aba63335 100644 (file)
@@ -510,13 +510,13 @@ module OSM
     if ipinfo
       country = ipinfo.country_code2
     else
     if ipinfo
       country = ipinfo.country_code2
     else
-      country = http_client.get("http://api.hostip.info/country.php?ip=#{ip_address}").body
+      country = http_client.get("https://api.hostip.info/country.php?ip=#{ip_address}").body
       country = "GB" if country == "UK"
     end
 
       country = "GB" if country == "UK"
     end
 
-    return country
+    country
   rescue StandardError
   rescue StandardError
-    return nil
+    nil
   end
 
   def self.ip_location(ip_address)
   end
 
   def self.ip_location(ip_address)