1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

Convert CircularRedirectException in IOException

This commit is contained in:
Mattia Bertorello 2019-06-28 17:52:31 +02:00
parent e6f09123bc
commit d3e712232b
No known key found for this signature in database
GPG Key ID: CE1FB2BE91770F24

View File

@ -2,7 +2,6 @@ package cc.arduino.utils.network;
import cc.arduino.net.CustomProxySelector;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.httpclient.CircularRedirectException;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -65,7 +64,7 @@ public class HttpConnectionManager {
log.info("Prepare http request to " + requestURL);
if (movedTimes > 3) {
log.warn("Too many redirect " + requestURL);
throw new CircularRedirectException("Too many redirect " + requestURL);
throw new IOException("Too many redirect " + requestURL);
}
Proxy proxy = new CustomProxySelector(PreferencesData.getMap())