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:
petromykhailysyn 2016-01-26 17:02:24 +02:00
parent 83823aad35
commit a7313023f7
1 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,9 @@ public class IncomingRequestAddressStrategy implements IServerAddressStrategy {
} else {
//servletContextPath can start with servletPath
contextIndex = requestUrl.indexOf(servletPath + "/", startOfPath);
if (contextIndex == -1) {
contextIndex = requestUrl.indexOf(servletPath, startOfPath);
}
}
String fhirServerBase;