Repository navigation
Conversation
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.
The compression suite covers forcing deflate with two
--compressflags and skipping a small body with one flag. It does not currently exercise the normal case where one flag compresses a body because the result is smaller.This adds end-to-end JSON and raw-body cases over both HTTP and HTTPS. They check that the server receives
Content-Encoding: deflate, that decompression restores the original payload, and thatContent-Lengthequals the compressed byte count. No production code or CLI behavior changes.Validation on Python 3.12.14 / macOS 26.6.1:
python -m pytest tests/test_compress.py -q: 20 passed, including the four new cases.test_naked_invocationerror-text expectation and the two Big5 charset-detection cases. All three failures were reproduced from an unchanged archive of baseline5b604c3in the same environment.git diff --check: passed.Prepared and tested with assistance from OpenAI Codex. I added my name to AUTHORS.md as suggested by CONTRIBUTING.md.