mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-16 18:05:19 +00:00
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…
x
Reference in New Issue
Block a user