Skip to content

Commit

Permalink
change: use isContainerIdentifier in FixedContentTypeMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks authored and joachimvh committed Nov 23, 2020
1 parent f686b48 commit f23073b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/storage/mapping/FixedContentTypeMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit f23073b

Please sign in to comment.