OPENIDE fix download RegionUrlMapper

(cherry picked from commit 44b0629239)
This commit is contained in:
Nikita Iarychenko
2025-07-02 13:19:28 +04:00
parent a5bccfd4ed
commit 03e5fa643e

View File

@@ -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) {