Make MaxMindUtils compile properly

This commit is contained in:
Colin McDonald 2016-06-17 14:58:56 -04:00
parent 63e8683b67
commit 2db90eedd5

View File

@ -21,7 +21,7 @@ public class MaxMindUtils {
APIv3.getHttpsClient().get(443, "geoip.maxmind.com", "/geoip/v2.1/insights/" + ip, (response) -> {
response.bodyHandler((body) -> {
Document resJson = Document.parse(body.toString());
callback.onResult(new MaxMindResult(ip, resJson), null);
callback.onResult(new MaxMindResult(resJson), null);
});
response.exceptionHandler((error) -> {