From c459439b9d9b9a94a7e33ca35ce88019915f29b3 Mon Sep 17 00:00:00 2001 From: dkayiwa Date: Fri, 20 Sep 2024 00:48:41 +0300 Subject: [PATCH] O3-3988 Patient identification photo not loading in patient banner --- .../webservices/rest/web/v1_0/controller/BaseUriSetup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omod-common/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/controller/BaseUriSetup.java b/omod-common/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/controller/BaseUriSetup.java index a46c73b8d..d8f0ef0b6 100644 --- a/omod-common/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/controller/BaseUriSetup.java +++ b/omod-common/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/controller/BaseUriSetup.java @@ -18,7 +18,7 @@ @Component public class BaseUriSetup { - public void setup(HttpServletRequest request) { + public synchronized void setup(HttpServletRequest request) { if (!RestConstants.URI_PREFIX.startsWith("http://") && !RestConstants.URI_PREFIX.startsWith("https://")) { StringBuilder uri = new StringBuilder(); uri.append(request.getScheme()).append("://").append(request.getServerName());