Skip to content

Conversation

maximilianfridrich
Copy link
Contributor

This fixes the following bug:

If a HTTP request is resent (e.g. with Authentication after a 401 response), the body of the request is not sent.

This is because in req_body_handler mbuf_advance(conn->body, len) is called. Then the request is re-sent and the body size is obtained by calling mbuf_get_left(conn->body) which is now incorrect.

The fix is to reset the mbuf position of conn->body before re-sending a request.

@alfredh alfredh merged commit 475573a into baresip:main May 12, 2024
@maximilianfridrich maximilianfridrich deleted the fix_http_body_401 branch May 13, 2024 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants