Skip to content

Commit

Permalink
brotli partial response fix (apache#11087)
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentEntity authored Mar 29, 2024
1 parent a7a5a2b commit 5319503
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apisix/plugins/brotli.lua
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ function _M.body_filter(conf, ctx)
end

if eof then
ngx.arg[1] = ctx.compressor:finish()
-- overwriting the arg[1], results into partial response
ngx.arg[1] = ngx.arg[1] .. ctx.compressor:finish()
end
end

Expand Down

0 comments on commit 5319503

Please sign in to comment.