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

Properly generate query URL.

parent 57e86005
No related branches found
No related tags found
No related merge requests found
......@@ -31,8 +31,15 @@ module Geocoder::Lookup
",,,,0,0,0,0,,"
end
def query_url(query, reverse = false)
"http://geoip3.maxmind.com/f?l=#{Geocoder::Configuration.ip_lookup_api_key}&i=#{query}"
def query_url_params(query)
super.merge(
:l => configuration.api_key,
:i => query.sanitized_text
)
end
def query_url(query)
"#{protocol}://geoip3.maxmind.com/f?" + url_query_string(query)
end
end
end
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