Repository navigation
Conversation
Co-authored-by: generaltony007 <[email protected]>
Co-authored-by: generaltony007 <[email protected]>
Co-authored-by: generaltony007 <[email protected]>
Co-authored-by: generaltony007 <[email protected]>
Contributor
Author
|
The remaining failed check here and on #8523 is the final autofix action's git step. The preceding lock, formatting, generated-file and lint steps pass. I can't access the job logs from this contributor account, so I can't tell whether a code change or maintainer action is needed. Could you share the actual git error, or let me know what needs changing to get these ready for review? Grouping the question here rather than repeating it on both PRs. Thanks. |
Contributor
Author
|
Could a maintainer advise on the next step for this Accept-Encoding fix? My earlier question about the autofix job's git error remains open. Please let me know whether author changes are needed before human review, or if you'd prefer the PR closed. Thanks. |
2 tasks done
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
Request.constrain_encoding()currently searches for supported coding names as substrings, then rebuilds the header using bare names from a set. This changes the client's preferences:gzip;q=0, br;q=0.5becomes a header accepting gzip and dropping the relative preference.GZIP, Brloses valid case-insensitive coding names.xgzip, brotli, notzstdincorrectly advertises gzip, br and zstd.Filter complete comma-separated members using their case-insensitive coding name, preserving each supported member's parameters, spelling and order. Keep explicit wildcard exclusions such as
*;q=0, since removing one can make identity acceptable again. Positive wildcards remain removed so they cannot advertise unsupported codings.RFC 9110 section 12.5.3 defines these weights and states that q=0 means not acceptable:
https://www.rfc-editor.org/rfc/rfc9110.html#section-12.5.3
This changes the explicit helper only, not default proxy behavior or Content-Encoding decoding. It is separate from #8276's stacked Content-Encoding handling.
Tests
Ten new cases cover quality weights, zero weights, casing, substring false positives, whitespace, wildcard exclusions/positive wildcard filtering, repeated header fields and an empty-header control. Eight fail against unchanged main
9125647; all ten pass with the fix. Existing missing-header and basic filtering tests also pass.Validation in a separate exact-main tree, without #8518, #8520 or #8521 source changes:
No full tools suite, live proxy session or Windows/macOS run was performed.
Checklist