[2883] Resolve threads
This commit is contained in:
parent
36d2a8f3ce
commit
62026d4caf
|
@ -268,7 +268,7 @@ public class OpenApiInterceptor {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String removeTrailingSlash(String theUrl) {
|
public String removeTrailingSlash(String theUrl) {
|
||||||
while(theUrl.endsWith("/")) {
|
while(theUrl != null && theUrl.endsWith("/")) {
|
||||||
theUrl = theUrl.substring(0, theUrl.length() - 1);
|
theUrl = theUrl.substring(0, theUrl.length() - 1);
|
||||||
}
|
}
|
||||||
return theUrl;
|
return theUrl;
|
||||||
|
@ -288,7 +288,7 @@ public class OpenApiInterceptor {
|
||||||
context.setVariable("DESCRIPTION", cs.getImplementation().getDescription());
|
context.setVariable("DESCRIPTION", cs.getImplementation().getDescription());
|
||||||
context.setVariable("SERVER_NAME", cs.getSoftware().getName());
|
context.setVariable("SERVER_NAME", cs.getSoftware().getName());
|
||||||
context.setVariable("SERVER_VERSION", cs.getSoftware().getVersion());
|
context.setVariable("SERVER_VERSION", cs.getSoftware().getVersion());
|
||||||
context.setVariable("BASE_URL", baseUrl);
|
context.setVariable("BASE_URL", cs.getImplementation().getUrl());
|
||||||
context.setVariable("BANNER_IMAGE_URL", getBannerImage());
|
context.setVariable("BANNER_IMAGE_URL", getBannerImage());
|
||||||
context.setVariable("OPENAPI_DOCS", baseUrl + "/api-docs");
|
context.setVariable("OPENAPI_DOCS", baseUrl + "/api-docs");
|
||||||
context.setVariable("FHIR_VERSION", cs.getFhirVersion().toCode());
|
context.setVariable("FHIR_VERSION", cs.getFhirVersion().toCode());
|
||||||
|
|
Loading…
Reference in New Issue