# IDEMPIERE-5533 - Changes MSequence to allow HTTPS on ID centralizer (#1629)
This commit is contained in:
parent
34fb9afa05
commit
5bcf7178af
|
@ -1148,8 +1148,8 @@ public class MSequence extends X_AD_Sequence
|
|||
// its various parts: protocol, host, port, filename. Check the protocol
|
||||
URL url = new URL(completeUrl);
|
||||
String protocol = url.getProtocol();
|
||||
if (!protocol.equals("http"))
|
||||
throw new IllegalArgumentException("URL must use 'http:' protocol");
|
||||
if (!protocol.equals("https") && !protocol.equals("http"))
|
||||
throw new IllegalArgumentException("URL must use 'http:' or 'https:' protocol");
|
||||
HttpURLConnection conn = (HttpURLConnection)url.openConnection();
|
||||
conn.setRequestMethod("GET");
|
||||
conn.setAllowUserInteraction(false);
|
||||
|
|
Loading…
Reference in New Issue