spacewander commented on code in PR #9024: URL: https://github.com/apache/apisix/pull/9024#discussion_r1131875531
########## apisix/plugins/gzip.lua: ########## @@ -100,6 +104,14 @@ function _M.check_schema(conf) end +function _M.rewrite(conf, ctx) + if conf.disable_via == true then + -- According to nginx source code, via header will cause gzip not work + core.request.set_header(ctx, "via", nil) Review Comment: If this can satisfy your requirement, why not just use proxy-rewrite plugin to do so? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
