Make MaxMindUtils compile properly
This commit is contained in:
parent
63e8683b67
commit
2db90eedd5
@ -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) -> {
|
||||
|
Loading…
Reference in New Issue
Block a user