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,8 +69,12 @@ public class IncomingRequestAddressStrategy implements IServerAddressStrategy {
|
||||||
contextIndex = requestUrl.indexOf(requestPath, startOfPath);
|
contextIndex = requestUrl.indexOf(requestPath, startOfPath);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
//servletContextPath can start with servletPath
|
||||||
|
contextIndex = requestUrl.indexOf(servletPath + "/", startOfPath);
|
||||||
|
if (contextIndex == -1) {
|
||||||
contextIndex = requestUrl.indexOf(servletPath, startOfPath);
|
contextIndex = requestUrl.indexOf(servletPath, startOfPath);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
String fhirServerBase;
|
String fhirServerBase;
|
||||||
int length = contextIndex + servletPath.length();
|
int length = contextIndex + servletPath.length();
|
||||||
|
|
Loading…
Reference in New Issue