mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
OPENIDE fix download RegionUrlMapper
(cherry picked from commit 44b0629239)
This commit is contained in:
@@ -150,11 +150,11 @@ public final class RegionUrlMapper {
|
||||
}
|
||||
|
||||
private static RegionMapping doLoadMappingOrThrow(Region reg) throws Exception {
|
||||
var configUrl = getConfigUrl(reg);
|
||||
var client = PlatformHttpClient.client();
|
||||
var request = PlatformHttpClient.request(new URI(configUrl));
|
||||
var response = PlatformHttpClient.checkResponse(client.send(request, HttpResponse.BodyHandlers.ofString()));
|
||||
return RegionMapping.fromJson(response.body());
|
||||
//var configUrl = getConfigUrl(reg);
|
||||
//var client = PlatformHttpClient.client();
|
||||
//var request = PlatformHttpClient.request(new URI(configUrl));
|
||||
//var response = PlatformHttpClient.checkResponse(client.send(request, HttpResponse.BodyHandlers.ofString()));
|
||||
return RegionMapping.EMPTY;
|
||||
}
|
||||
|
||||
private static @NotNull String getConfigUrl(@NotNull Region reg) {
|
||||
|
||||
Reference in New Issue
Block a user