Polishing

This commit is contained in:
rstoyanchev 2024-10-17 18:27:57 +01:00
parent 626f4279f6
commit 5271f5b8a1
1 changed files with 1 additions and 9 deletions

View File

@ -61,7 +61,7 @@ class PathResourceLookupFunction implements Function<ServerRequest, Optional<Res
}
pathContainer = this.pattern.extractPathWithinPattern(pathContainer);
String path = processPath(pathContainer.value());
String path = ResourceHandlerUtils.normalizeInputPath(pathContainer.value());
if (ResourceHandlerUtils.shouldIgnoreInputPath(path)) {
return Optional.empty();
}
@ -84,14 +84,6 @@ class PathResourceLookupFunction implements Function<ServerRequest, Optional<Res
}
}
/**
* Process the given resource path.
* <p>By default, this method delegates to {@link ResourceHandlerUtils#normalizeInputPath}.
*/
protected String processPath(String path) {
return ResourceHandlerUtils.normalizeInputPath(path);
}
@Override
public String toString() {
return this.pattern + " -> " + this.location;