Skip to content

fix: restore #155 missing-header refusal - #3

Draft
dinakarjs wants to merge 1 commit into
review/155-source-20261027from
fix/155-review-followup-20261027
Draft

dinakarjs wants to merge 1 commit into
review/155-source-20261027from
fix/155-review-followup-20261027

Conversation

@dinakarjs

Copy link
Copy Markdown
Owner

Author-adoption companion for agentrust-io#155, based exactly on 2ee5b29.

HTTPMessage.get_all returns None when Content-Length is absent. The new duplicate-header loop iterated that None, disconnecting the request instead of returning the existing 400 refusal. Normalize absence to an empty list and preserve the existing _BodyError path. Remove the now-unused local json import flagged by CI Ruff.

The existing test_missing_negative_and_malformed_lengths_are_400 fails on the original head (RemoteDisconnected) and passes with this fix. Full unittest suite: 409 passed; repository Ruff and diff whitespace pass. No new header policy or acceptance path. Signed commit; prepared with OpenAI Codex. Please adopt on the existing upstream PR and obtain independent review.

Prepared with OpenAI Codex.

Signed-off-by: Srinivasa Consultants <78673153+dinakarjs@users.noreply.github.com>
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.

1 participant