Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core(network-request): consider secondary headers for content encoded check #15708

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

connorjclark
Copy link
Collaborator

smokerider caught this

NetworkRequest.isContentEncoded did not consider the headers 'x-original-content-encoding' or 'x-content-encoding-over-network'.

There was logic for exactly this function already in response-compression.js, so I've moved it to network request.

@connorjclark connorjclark requested a review from a team as a code owner December 19, 2023 22:03
@connorjclark connorjclark requested review from adamraine and removed request for a team December 19, 2023 22:03
resourceSize: 75221,
transferSize: 22889,
it('should use respect X-Original-Content-Encoding', () => {
const record = records.find(r => r.url === 'https://www.paulirish.com/javascripts/modernizr-2.0.js');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added this test

@connorjclark connorjclark merged commit 11b82b1 into main Dec 19, 2023
29 checks passed
@connorjclark connorjclark deleted the fix-lr-gzip branch December 19, 2023 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants