-
Notifications
You must be signed in to change notification settings - Fork 15
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
Global response headers #248
Conversation
514b72a
to
7235405
Compare
7235405
to
3971fd6
Compare
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.
LGTM. Please apply the suggestion regarding the gzip writer.
server/writer/gzip.go
Outdated
@@ -93,3 +96,5 @@ func ModifyAcceptEncoding(header http.Header) { | |||
header.Del(AcceptEncodingHeader) | |||
} | |||
} | |||
|
|||
func (g *Gzip) AddModifier(_ *eval.Context, _ []hcl.Body) {} |
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.
Should be removed here. Just define this Method as own interface instead of using the writer
if required. As I can see, there are explicit type assertions instead of using the writer
interface.
560ce34
to
7c2035e
Compare
No description provided.