From f23073b87f16ca9d85745fdae1d92f986bf6cac5 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Mon, 23 Nov 2020 12:48:24 +0100 Subject: [PATCH] change: use isContainerIdentifier in FixedContentTypeMapper --- src/storage/mapping/FixedContentTypeMapper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/mapping/FixedContentTypeMapper.ts b/src/storage/mapping/FixedContentTypeMapper.ts index 45998ddae..13ac6593f 100644 --- a/src/storage/mapping/FixedContentTypeMapper.ts +++ b/src/storage/mapping/FixedContentTypeMapper.ts @@ -4,7 +4,7 @@ import { getLoggerFor } from '../../logging/LogUtil'; import { UnsupportedHttpError } from '../../util/errors/UnsupportedHttpError'; import { encodeUriPathComponents, - ensureTrailingSlash, + ensureTrailingSlash, isContainerIdentifier, trimTrailingSlashes, } from '../../util/PathUtil'; import type { FileIdentifierMapper, ResourceLink } from '../FileIdentifierMapper'; @@ -35,7 +35,7 @@ export class FixedContentTypeMapper implements FileIdentifierMapper { const filePath = getAbsolutePath(this.rootFilepath, path); // Container - if (identifier.path.endsWith('/')) { + if (isContainerIdentifier(identifier)) { this.logger.debug(`URL ${identifier.path} points to the container ${filePath}`); return { identifier,