KEYCLOAK-912 Admin CLI

- Fix relative URI resolution not working for https
This commit is contained in:
Marko Strukelj committed 2016-12-19 11:39:18 +01:00
1 parent c3d9859c6e
commit ad11d6e76b
1 file changed
+1 -1
@@ -308,7 +308,7 @@ public class HttpUtil {
}
public static String composeResourceUrl(String adminRoot, String realm, String uri) {
if (!uri.startsWith("http:")) {
if (!uri.startsWith("http:") && !uri.startsWith("https:")) {
if ("realms".equals(uri) || uri.startsWith("realms/")) {
uri = normalize(adminRoot) + uri;
} else if ("serverinfo".equals(uri)) {