mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-16 09:54:55 +00:00
Fix AssertionError message (#2044)
Signed-off-by: Lukáš Vlček <lukas.vlcek@aiven.io>
This commit is contained in:
parent
c8ac037389
commit
270c59f523
@ -401,7 +401,7 @@ class InstallPluginCommand extends EnvironmentAwareCommand {
|
||||
boolean urlExists(Terminal terminal, String urlString) throws IOException {
|
||||
terminal.println(VERBOSE, "Checking if url exists: " + urlString);
|
||||
URL url = new URL(urlString);
|
||||
assert "https".equals(url.getProtocol()) : "Only http urls can be checked";
|
||||
assert "https".equals(url.getProtocol()) : "Use of https protocol is required";
|
||||
HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
|
||||
urlConnection.addRequestProperty("User-Agent", "opensearch-plugin-installer");
|
||||
urlConnection.setRequestMethod("HEAD");
|
||||
|
Loading…
x
Reference in New Issue
Block a user