strix/tests
hardik-devops 453aabe59d resolve(proxy): emit Content-Length: 0 for empty replaced body
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.
2026-07-01 20:04:09 +05:30
..
__init__.py Add configurable token / cost usage limits (#576) 2026-06-22 11:17:08 -04:00
test_caido_api.py resolve(proxy): emit Content-Length: 0 for empty replaced body 2026-07-01 20:04:09 +05:30
test_config_loader.py test: add unit tests for config loader (strix/config/loader.py) (#596) 2026-06-30 04:31:29 -07:00
test_execution.py Add configurable token / cost usage limits (#576) 2026-06-22 11:17:08 -04:00
test_hooks.py Add configurable token / cost usage limits (#576) 2026-06-22 11:17:08 -04:00
test_inputs.py fix(core): collapse child agent initial input into a single user message (#589) 2026-06-29 06:51:47 -07:00
test_local_sources.py Support large target repos with with bind-mount option. (#577) 2026-06-22 12:41:42 -04:00
test_runner_rate_limit.py fix: stop gracefully with resume hint on persistent RateLimitError (#261) (#593) 2026-06-29 07:31:54 -07:00
test_session_entries.py Support large target repos with with bind-mount option. (#577) 2026-06-22 12:41:42 -04:00