mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 11:53:49 +07:00
OPENIDE fix download RegionUrlMapper
This commit is contained in:
@@ -148,8 +148,7 @@ public final class RegionUrlMapper {
|
|||||||
private static @NotNull RegionMapping doLoadMappingOrThrow(@NotNull Region reg) throws IOException {
|
private static @NotNull RegionMapping doLoadMappingOrThrow(@NotNull Region reg) throws IOException {
|
||||||
String configUrl = getConfigUrl(reg);
|
String configUrl = getConfigUrl(reg);
|
||||||
try {
|
try {
|
||||||
String json = HttpRequests.request(configUrl).readString();
|
return RegionMapping.empty();
|
||||||
return RegionMapping.fromJson(json);
|
|
||||||
}
|
}
|
||||||
catch (Throwable e) {
|
catch (Throwable e) {
|
||||||
LOG.info("Failed to load region-specific url mappings : " + e.getMessage());
|
LOG.info("Failed to load region-specific url mappings : " + e.getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user