lib/geocoder/lookups/freegeoip.rb in geocoder-1.1.4 vs lib/geocoder/lookups/freegeoip.rb in geocoder-1.1.5
- old
+ new
@@ -35,9 +35,9 @@
"country_code" => "RD"
}
end
def query_url(query)
- "http://freegeoip.net/json/#{query.sanitized_text}"
+ "#{protocol}://freegeoip.net/json/#{query.sanitized_text}"
end
end
end