Skip to content

Commit

Permalink
feat: let balancer.recreate_request API work for body data
Browse files Browse the repository at this point in the history
  • Loading branch information
oowl committed Jul 11, 2024
1 parent 45c63cd commit 8bb57c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ngx_http_lua_balancer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ ngx_http_lua_ffi_balancer_recreate_request(ngx_http_request_t *r,
/* u->request_bufs already contains a valid request buffer
* remove it from chain first
*/
u->request_bufs = u->request_bufs->next;
u->request_bufs = r->request_body->bufs;
}

return u->create_request(r);
Expand Down

0 comments on commit 8bb57c6

Please sign in to comment.