-
Notifications
You must be signed in to change notification settings - Fork 584
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
fix: handle missing vary header values #4031
base: main
Are you sure you want to change the base?
Conversation
@KhafraDev can you take a look as well? This issue recently bit me too |
Cc @flakey5, just saw your PR but leaving it here if you want to merge this one It fixes both the undercase problem and the cache issue |
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.
test/utils/cache.js
Outdated
const assert = require('node:assert') | ||
const { parseVaryHeader } = require('../../lib/util/cache.js') | ||
|
||
describe('parseVaryHeader', () => { |
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.
nit but could you move these to where the other tests are for this function?
undici/test/cache-interceptor/utils.js
Line 179 in a9176c9
describe('parseVaryHeader', () => { |
Co-authored-by: flakey5 <73616808+flakey5@users.noreply.github.com>
Yeah had to go back to null, it works better with JSON 😁 |
fixes: #3959