Skip to content

Set default response type to text/turtle for the root folder #1171

Description

@Otto-AA

Please describe what you did in reproducible steps

Fetch the root folder of a pod on a v5.0.0 server without specifying the "Accept" header.
(e.g. GET https://testomat.solid.open.ac.uk/, Accept: */*)

How did it work with 4.x series servers?

It returned a text/turtle file.

What happened when you tried the same with the 5.x series server?

It returns a text/html file.

Any material that will help, logs, error messages, etc.

This is a follow up question of this issue.

As far as I understand the spec it should return a text/turtle response by default if a container (folder) is requested. This also was the case for the root folder in 4.x, but changed with 5.0.0.

IMPORTANT: a default Content-Type: text/turtle will be used for requests for RDF resources or views (containers) that do not have an Accept header.

Here is a more precise explanation of the behavior of the different versions, if the above was not expressive enough.

Metadata

Metadata

Assignees

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