Repository navigation
Conversation
Use decoded body length for content.size while retaining raw bytes for bodySize and the existing compression calculation. Co-authored-by: generaltony007 <[email protected]>
Check decoded size, encoded bodySize, and bytes saved for gzip text and binary responses. Co-authored-by: generaltony007 <[email protected]>
Update exactly three compressed response content.size fields; bodySize, text and compression are unchanged. Co-authored-by: generaltony007 <[email protected]>
Note the HAR export size correction. Co-authored-by: generaltony007 <[email protected]>
Co-authored-by: generaltony007 <[email protected]>
Contributor
Author
|
Could a maintainer give the HAR decoded-response-size fix a human review and advise on the next step? Please let me know if changes are needed or if you'd prefer this PR closed. Thanks. |
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.
Description
HAR 1.2 defines
response.content.sizeas the decoded content length andresponse.bodySizeas the received encoded body length. The exporter currently assigns the encoded length to both, even though it already computes the decoded length forcontent.compression.Use the decoded length for
content.size, keepingbodySize,compression, and exported content unchanged. For a 1,200-byte text body compressed to 46 bytes, this changescontent.sizefrom 46 to 1,200 while retainingbodySize: 46andcompression: 1154.Specification: https://w3c.github.io/web-performance/specs/HAR/Overview.html#content
Validation against main
1d5d831c:uv run --no-sync tox -e lintand changed-file Ruff formatting checks pass.Tests use the existing development environment with
--no-sync; the newest main dependency lock was not reinstalled for the pytest runs.Checklist