-
-
Notifications
You must be signed in to change notification settings - Fork 687
fetch: process content-encoding header only if relevant #4496
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4496 +/- ##
==========================================
- Coverage 93.53% 93.53% -0.01%
==========================================
Files 103 103
Lines 32349 32348 -1
==========================================
- Hits 30257 30256 -1
Misses 2092 2092 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| "test": "npm run test:javascript && cross-env NODE_V8_COVERAGE= npm run test:typescript", | ||
| "test:javascript": "npm run test:javascript:no-jest && npm run test:jest", | ||
| "test:javascript:no-jest": "npm run generate-pem && npm run test:unit && npm run test:node-fetch && npm run test:cache && npm run test:cache-interceptor && npm run test:interceptors && npm run test:fetch && npm run test:cookies && npm run test:eventsource && npm run test:subresource-integrity && npm run test:wpt && npm run test:websocket && npm run test:node-test && npm run test:cache-tests", | ||
| "test:javascript:no-jest": "npm run generate-pem && npm run test:unit && npm run test:fetch && npm run test:node-fetch && npm run test:cache && npm run test:cache-interceptor && npm run test:interceptors && npm run test:cookies && npm run test:eventsource && npm run test:subresource-integrity && npm run test:wpt && npm run test:websocket && npm run test:node-test && npm run test:cache-tests", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this just moving test:fetch earlier in the order? Does that really matter? i hope the tests are independant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they are, but it makes more sense to test the fetch stuff consequently.
| req.headers['accept-encoding'] === 'deflate, gzip' || | ||
| req.headers['accept-encoding'] === 'DeFlAtE, GzIp' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| req.headers['accept-encoding'] === 'deflate, gzip' || | |
| req.headers['accept-encoding'] === 'DeFlAtE, GzIp' | |
| req.headers['accept-encoding']?.toLowerCase() === 'deflate, gzip' |
This relates to...
Rationale
Changes
Features
Bug Fixes
Breaking Changes and Deprecations
Status