don't duplicate accept-encoding in vary header #2796
This is in relation hapijs/h2o2#17 .
accept-encoding value in vary header was being duplicated. This fixes the issue and adds a test case to cover the scenario.
I could have fixed it instead in lib/response.js, to not add a value if it already exists in a header but I thought that was too brittle to do there.
PS: forgot to say, I will make a lts PR if this is accepted.
The text was updated successfully, but these errors were encountered: