Previous commit broke spaces in URLs
This commit is contained in:
@@ -63,9 +63,9 @@ public class FileResource {
|
|||||||
FileInfoBase fileInfoBase = fileInfoService.getInfo(names, fileTokenProvider);
|
FileInfoBase fileInfoBase = fileInfoService.getInfo(names, fileTokenProvider);
|
||||||
|
|
||||||
if (fileInfoBase instanceof FolderInfo) {
|
if (fileInfoBase instanceof FolderInfo) {
|
||||||
if (!uriInfo.getRequestUri().getPath().endsWith("/")) {
|
if (!uriInfo.getRequestUri().getRawPath().endsWith("/")) {
|
||||||
return Response.status(Response.Status.MOVED_PERMANENTLY)
|
return Response.status(Response.Status.MOVED_PERMANENTLY)
|
||||||
.location(URI.create(uriInfo.getRequestUri().getPath() + "/")).build();
|
.location(URI.create(uriInfo.getRequestUri().getRawPath() + "/")).build();
|
||||||
}
|
}
|
||||||
return fileServeService.serveFolder((FolderInfo) fileInfoBase);
|
return fileServeService.serveFolder((FolderInfo) fileInfoBase);
|
||||||
} else if (fileInfoBase instanceof FileInfo) {
|
} else if (fileInfoBase instanceof FileInfo) {
|
||||||
|
|||||||
Reference in New Issue
Block a user