fix: preserve raw request bodies for custom content types - #733
Open
mikemikimike wants to merge 3 commits into
Open
fix: preserve raw request bodies for custom content types#733mikemikimike wants to merge 3 commits into
mikemikimike wants to merge 3 commits into
Conversation
mikemikimike
requested review from
Abdul-0x4A,
andyland,
dmitsf,
ethanwharris,
justusschock,
k223kim and
tchaton
as code owners
August 23, 2026 03:58
Author
Maintainer feedback requested: exposing Content-Type to
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
decode_requestunchanged #732Implementation
Compatibility
Existing JSON and form/multipart request handling is unchanged. Custom content types that previously failed JSON parsing now receive raw bytes.
Tests
python -m compileall -q src/litserve/server.py tests/unit/test_request_handlers.py— passedgit diff --check— passedpytest tests/unit/test_request_handlers.py -q— not completed: the uv-managed environment remained silent/hung during dependency setup/import in this Windows environment; the process was stopped.