Skip to content

Conneg ignores Accept header priority #71

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

    bugSomething isn't workingstale-fixedOpen issue whose described problem no longer reproduces on current main; verify and close

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions