Skip to content

*/* in Accept header is ignored if not listed as the first item #30806

Closed
@jmartisk

Description

@jmartisk

Describe the bug

see #30759 (reply in thread) for description of the bug

Expected behavior

An */* type is always recognized if present in an Accept header of GraphQL requests, and the request be handled normally with the default response content type (which is application/graphql+json)

Actual behavior

An */* type is recognized only if it's the first item in the Accept header, else the GraphQL endpoint returns a 406 Unacceptable response.

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions