fix url for https

This commit is contained in:
verboomp
2026-02-03 14:21:24 +01:00
parent 935999bb5a
commit 3a1b9a3af6
2 changed files with 16 additions and 5 deletions

View File

@@ -124,7 +124,18 @@ public class CustomerPictureResourceTest extends AbstractRestTest {
}
public static void main(String[] args) throws IOException {
String baseUrl = "http://hartmann-cue.heydevelop.de/api/";
//String baseUrl = "http://localhost:8080/api/";
String sizeUrl = baseUrl;
System.out.println();
if(baseUrl.startsWith("http://") && !baseUrl.startsWith("http://localhost")){
System.out.println("starts with http:// ");
sizeUrl = "https://" + baseUrl.substring(7);
System.out.println("new baseUrl " + sizeUrl);
}
/*
var test = new CustomerPictureResourceTest();
test.deploymentURL = "http://localhost:8080/";
@@ -132,6 +143,6 @@ public class CustomerPictureResourceTest extends AbstractRestTest {
test.username = "adm";
test.password = "x1t0e7Pb49";
test.doTest();
test.doTest();*/
}
}