mirror of
https://github.com/usestrix/strix.git
synced 2026-08-16 09:26:39 +02:00
build_raw_request kept the Content-Length inherited from the captured request, so replaying a modified body (repeat_request) emitted a request whose declared length did not match the body — truncating the payload or stalling the target. Drop any inherited Content-Length (case-insensitively) and recompute it from the body actually being sent. Adds tests covering a lengthened body, an emptied body, and the no-inherited-header path. Fixes #814 Co-authored-by: thejesh23 <thejesh23@users.noreply.github.com>