mirror of
https://github.com/usestrix/strix.git
synced 2026-10-15 04:18:10 +00:00
build_raw_request's Content-Length guard was "if body and ...", so a falsy empty-string body (a valid replacement via repeat_request's modifications["body"]) skipped Content-Length injection entirely. Sending no Content-Length is valid HTTP/1.1, but some strict servers or WAFs expect an explicit Content-Length: 0, so silently omitting it can still cause inconsistent replay behavior. Change the guard to "body is not None" so an empty body still gets Content-Length: 0 while a None body (not applicable here, but kept for clarity) is still skipped. Adds test_build_raw_request_sets_content_length_zero_for_empty_body, verified RED against the prior "if body and ..." guard before GREEN. Addresses review feedback from usestrix/strix#614. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_caido_api.py | ||
| test_config_loader.py | ||
| test_execution.py | ||
| test_hooks.py | ||
| test_inputs.py | ||
| test_local_sources.py | ||
| test_runner_rate_limit.py | ||
| test_session_entries.py | ||