Skip to content

Commit

Permalink
replace new URL
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
  • Loading branch information
mherwege committed Jan 9, 2025
1 parent c720f57 commit 48e07d0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@ private static boolean shouldUseProxy(String urlString, String nonProxyHosts) {
String givenHost = urlString;

try {
URL url = new URL(urlString);
URL url = (new URI(urlString)).toURL();
givenHost = url.getHost();
} catch (MalformedURLException e) {
} catch (MalformedURLException | URISyntaxException e) {
LOGGER.error("the given url {} is malformed", urlString);
}

Expand Down

0 comments on commit 48e07d0

Please sign in to comment.