Skip to content
Snippets Groups Projects
Commit ac49c1bc authored by Alex Reisner's avatar Alex Reisner
Browse files

Stop calling obsolete method: URI.escape

No escaping should be necessary, according to the MaxMind docs:
http://dev.maxmind.com/geoip/geoip2/web-services/
parent 59c303cd
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ module Geocoder::Lookup ...@@ -15,7 +15,7 @@ module Geocoder::Lookup
end end
def query_url(query) def query_url(query)
"#{protocol}://geoip.maxmind.com/geoip/v2.1/#{configured_service!}/#{URI.escape(query.sanitized_text.strip)}" "#{protocol}://geoip.maxmind.com/geoip/v2.1/#{configured_service!}/#{query.sanitized_text.strip}"
end end
private # --------------------------------------------------------------- private # ---------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment