Skip to content

Refactor: Extract content-type and body conversion into overridable private methods - #359

Merged
jeremyevans merged 1 commit into
rack:mainfrom
halllzA:extract-content-type-and-body-conversion
Aug 14, 2026
Merged

Refactor: Extract content-type and body conversion into overridable private methods#359
jeremyevans merged 1 commit into
rack:mainfrom
halllzA:extract-content-type-and-body-conversion

Conversation

@halllzA

@halllzA halllzA commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Extracted the default behavior for non-GET requests without an explicit Content-Type into two overridable private methods.

As discussed here:
Closes: #358 (comment)

…rivate methods

Signed-off-by: Haruki Kobayashi <kobakun1124@gmail.com>

@jeremyevans jeremyevans left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, thanks for the patch!

@jeremyevans
jeremyevans merged commit ea92557 into rack:main Aug 14, 2026
30 checks passed
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.

Add opt-in config for application/json as default Content-Type

2 participants