Fix issue with getting SockJS path

Issue: SPR-10923
This commit is contained in:
Rossen Stoyanchev
2013-09-30 21:19:29 -04:00
parent 6ddacdc01d
commit e60e8dc582
2 changed files with 13 additions and 2 deletions

View File

@@ -374,7 +374,7 @@ public abstract class AbstractSockJsService implements SockJsService {
// Try SockJS prefix hints
if (!this.validSockJsPrefixes.isEmpty()) {
for (String prefix : this.validSockJsPrefixes) {
int index = path.indexOf(prefix);
int index = path.lastIndexOf(prefix);
if (index != -1) {
this.knownSockJsPrefixes.add(path.substring(0, index + prefix.length()));
return path.substring(index + prefix.length());