Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: parse Accept header with normalized case #3489

Merged

Conversation

develop7
Copy link
Collaborator

@develop7 develop7 commented May 7, 2024

The Accept header is parsed case-insensitively now, introducing proper
handling of media types specified in upper- and/or mixed-case.

Fixes #3478

@develop7 develop7 marked this pull request as ready for review May 7, 2024 15:26
CHANGELOG.md Outdated Show resolved Hide resolved
src/PostgREST/MediaType.hs Outdated Show resolved Hide resolved
@develop7 develop7 marked this pull request as draft May 8, 2024 09:40
@develop7 develop7 requested a review from steve-chavez May 8, 2024 16:37
@develop7 develop7 marked this pull request as ready for review May 8, 2024 16:38
The Accept header is parsed case-insensitively now, introducing proper
handling of media types specified in upper- and/or mixed-case.

Fixes PostgREST#3478
@wolfgangwalther wolfgangwalther force-pushed the fix-3478-accept_normalize_case branch from 9c41280 to ce3bdff Compare May 9, 2024 17:05
@wolfgangwalther
Copy link
Member

I rebased the branch on latest main.

@wolfgangwalther wolfgangwalther merged commit 3026c1f into PostgREST:main May 9, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Accept header value shoud be case-insensitive
3 participants