We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Responses may end up with duplicate header key:value for "Vary:Accept-Encoding"
Adding the header value should only be done if it is not already present.
No response
handlers/compress.go
Line 95 in 9c61bd8
The text was updated successfully, but these errors were encountered:
- w.Header().Add("Vary", acceptEncoding) + if w.Header().Get("Vary") != acceptEncoding { + w.Header().Add("Vary", acceptEncoding) + }
Sorry, something went wrong.
No branches or pull requests
Is there an existing issue for this?
Current Behavior
Responses may end up with duplicate header key:value for "Vary:Accept-Encoding"
Expected Behavior
Adding the header value should only be done if it is not already present.
Steps To Reproduce
No response
Anything else?
handlers/compress.go
Line 95 in 9c61bd8
The text was updated successfully, but these errors were encountered: