Revert "If servletContextPath is not root (application is deployed not to the root) we should take it into consideration while determinating server base."
This reverts commit 0e3bb5a797
.
This commit is contained in:
parent
83823aad35
commit
a7313023f7
|
@ -71,6 +71,9 @@ public class IncomingRequestAddressStrategy implements IServerAddressStrategy {
|
||||||
} else {
|
} else {
|
||||||
//servletContextPath can start with servletPath
|
//servletContextPath can start with servletPath
|
||||||
contextIndex = requestUrl.indexOf(servletPath + "/", startOfPath);
|
contextIndex = requestUrl.indexOf(servletPath + "/", startOfPath);
|
||||||
|
if (contextIndex == -1) {
|
||||||
|
contextIndex = requestUrl.indexOf(servletPath, startOfPath);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String fhirServerBase;
|
String fhirServerBase;
|
||||||
|
|
Loading…
Reference in New Issue