Skip to content

Commit

Permalink
fix: not use nested encode context
Browse files Browse the repository at this point in the history
  • Loading branch information
areyouok committed Jan 11, 2025
1 parent 2bb7496 commit 4edce2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public final boolean encode(EncodeContext context, ByteBuffer buf) {
try {
if (bodySize > 0) {
int x = buf.position();
finish = encodeBody(context, buf);
finish = encodeBody(context.createOrGetNestedContext(false), buf);
x = buf.position() - x;
if (finish) {
if (bodySize != x + context.pending) {
Expand Down

0 comments on commit 4edce2b

Please sign in to comment.