Skip to content

Commit 5319503

Browse files
authored
brotli partial response fix (#11087)
1 parent a7a5a2b commit 5319503

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apisix/plugins/brotli.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ function _M.body_filter(conf, ctx)
239239
end
240240

241241
if eof then
242-
ngx.arg[1] = ctx.compressor:finish()
242+
-- overwriting the arg[1], results into partial response
243+
ngx.arg[1] = ngx.arg[1] .. ctx.compressor:finish()
243244
end
244245
end
245246

0 commit comments

Comments
 (0)