Skip to content

Commit

Permalink
http/request: reset body mbuf pos on re-sending (#1116)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianfridrich authored May 12, 2024
1 parent 01c4613 commit 475573a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/http/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ static void resp_handler(int err, const struct http_msg *msg, void *arg)
}

pl_set_mbuf(&auth, abuf);
mbuf_set_pos(conn->body, 0);
err = send_req(conn, &auth);
if (err)
goto disconnect;
Expand Down

0 comments on commit 475573a

Please sign in to comment.