Skip to content

"js" container gets mime type #1361

Description

@Otto-AA

When the name of a container is a file extension (e.g. js), the parent of it will list it with a mime-type.

For instance if I make this request:

SolidAuthClient.fetch('https://otman.solid.community/public/', {
  method: 'POST',
  headers: {
    link: '<http://www.w3.org/ns/ldp#BasicContainer>; rel="type"',
    slug: 'js',
    'content-type': 'text/turtle' }
})

Then https://otman.solid.community/public/ will contain following:

js:
    a j:Resource, ldp:BasicContainer, ldp:Container, ldp:Resource;
    terms:modified "2019-11-16T12:48:43Z"^^XML:dateTime;
    st:mtime 1573908523.907;
    st:size 4096.

So it says, that the container is a javascript resource. It also works for css and highly likely other file extensions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions