Skip to content

Stop treating JSON-seq request bodies as JSON - #518

Merged
geemus merged 1 commit into
masterfrom
fix/json-request-media-type
Nov 21, 2026
Merged

geemus merged 1 commit into
masterfrom
fix/json-request-media-type

Conversation

@ydah

@ydah ydah commented Nov 20, 2026

Copy link
Copy Markdown
Member

application/json-seq matches the request-side JSON regex, causing sequence bodies to fail JSON parsing and return 400. The body-exclusion helper also incorrectly treats this media type as JSON.

Reuse the existing anchored JSON media-type check in both paths. Add regression coverage for media-type boundaries, charset parameters, raw body preservation, and body exclusion.

@geemus geemus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

@geemus
geemus merged commit 6f1cd3c into master Nov 21, 2026
11 checks passed
@geemus
geemus deleted the fix/json-request-media-type branch November 21, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants