# IDEMPIERE-5533 - Changes MSequence to allow HTTPS on ID centralizer (#1629)

This commit is contained in:
Jose Leite 2023-01-07 10:54:06 -03:00 committed by GitHub
parent 34fb9afa05
commit 5bcf7178af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);