Skip to content

Conneg ignores Accept header priority #71

@melvincarvalho

Description

@melvincarvalho

Summary

Content negotiation returns text/turtle regardless of the order specified in the Accept header.

Steps to Reproduce

curl -I 'https://example.com/' -H 'Accept: application/ld+json, text/turtle, application/json'

Expected: Content-Type: application/ld+json (first in list)

Actual: Content-Type: text/turtle

Workaround

Request only the desired type:

curl -I 'https://example.com/' -H 'Accept: text/html'

This correctly returns Content-Type: text/html.

Impact

Environment

  • JSS v0.0.75

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