Merge pull request #289 from petromykhailysyn/master
ServletContextPath can start with servletPath, it should be taken into consideration
This commit is contained in:
commit
def7fc93e0
|
@ -69,7 +69,11 @@ public class IncomingRequestAddressStrategy implements IServerAddressStrategy {
|
|||
contextIndex = requestUrl.indexOf(requestPath, startOfPath);
|
||||
}
|
||||
} else {
|
||||
contextIndex = requestUrl.indexOf(servletPath, startOfPath);
|
||||
//servletContextPath can start with servletPath
|
||||
contextIndex = requestUrl.indexOf(servletPath + "/", startOfPath);
|
||||
if (contextIndex == -1) {
|
||||
contextIndex = requestUrl.indexOf(servletPath, startOfPath);
|
||||
}
|
||||
}
|
||||
|
||||
String fhirServerBase;
|
||||
|
|
Loading…
Reference in New Issue