lib/geocoder/lookups/baidu_ip.rb in geocoder-1.2.8 vs lib/geocoder/lookups/baidu_ip.rb in geocoder-1.2.9
- old
+ new
@@ -14,9 +14,14 @@
def query_url(query)
"http://api.map.baidu.com/location/ip?" + url_query_string(query)
end
+ # HTTP only
+ def supported_protocols
+ [:http]
+ end
+
private # ---------------------------------------------------------------
def results(query, reverse = false)
return [] unless doc = fetch_data(query)
case doc['status']