Polish contribution

See gh-23923
This commit is contained in:
Sam Brannen
2019-11-06 10:51:55 +01:00
parent 9da15ee23a
commit 1a13700f8b
4 changed files with 25 additions and 19 deletions

View File

@@ -472,7 +472,7 @@ public abstract class AbstractSockJsService implements SockJsService, CorsConfig
private boolean validatePath(ServerHttpRequest request) {
String path = request.getURI().getPath();
int index = path.lastIndexOf('/') + 1;
return path.indexOf(';', index) == -1;
return (path.indexOf(';', index) == -1);
}
protected boolean checkOrigin(ServerHttpRequest request, ServerHttpResponse response, HttpMethod... httpMethods)