After sending HTX data to an applet, htx_to_buf() must be called on the
applet buffer to commit changes (and possibly to reset the buffer if it is
empty). This was performed on the output buffer while it should in fact be
performed on the input buffer. So let's fix it.
This patch must be backported as far as 3.0.
appctx_htx->flags |= (buf_htx->flags & HTX_FL_EOM);
}
- htx_to_buf(appctx_htx, &appctx->outbuf);
+ htx_to_buf(appctx_htx, &appctx->inbuf);
htx_to_buf(buf_htx, buf);
ret -= buf_htx->data;
end: