From 735d626d887ffac3555c9b080a720931c9c40836 Mon Sep 17 00:00:00 2001 From: jrobinso <933148+jrobinso@users.noreply.github.com> Date: Thu, 25 Jul 2024 15:43:50 -0700 Subject: [PATCH] Map legacy URLs before opening connection input stream --- src/main/java/org/broad/igv/util/HttpUtils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/broad/igv/util/HttpUtils.java b/src/main/java/org/broad/igv/util/HttpUtils.java index c97804e18d..086d035ce0 100644 --- a/src/main/java/org/broad/igv/util/HttpUtils.java +++ b/src/main/java/org/broad/igv/util/HttpUtils.java @@ -345,6 +345,9 @@ public String doPost(URL url, Map params) throws IOException { * @throws IOException */ public InputStream openConnectionStream(URL url) throws IOException { + + url = new URL(mapURL(url.toExternalForm())); + log.debug("Opening connection stream to " + url); if (url.getProtocol().toLowerCase().equals("ftp")) { String userInfo = url.getUserInfo();