Skip to content

Reject conflicting duplicate Content-Length headers#1319

Closed
Mirochill wants to merge 1 commit into
python-hyper:masterfrom
Mirochill:fix-1316-duplicate-content-length
Closed

Reject conflicting duplicate Content-Length headers#1319
Mirochill wants to merge 1 commit into
python-hyper:masterfrom
Mirochill:fix-1316-duplicate-content-length

Conversation

@Mirochill
Copy link
Copy Markdown

Summary

  • validate all inbound content-length header fields before initializing the expected body length
  • accept duplicate content-length headers only when all values agree
  • add coverage for matching and conflicting duplicate content-length request headers

Closes #1316.

Validation

  • git diff --check
  • Not run: local h2 tests, tox, linters, or project tooling. This coordination workspace forbids local validation runs for third-party PRs; remote CI should provide the executable validation.

@Mirochill
Copy link
Copy Markdown
Author

I missed that #1317 was already actively covering this issue. Closing this draft to avoid duplicating review effort; #1317 has the maintainer discussion and remote checks attached. Sorry for the noise.

@Mirochill Mirochill closed this May 19, 2026
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.

Reject conflicting duplicate Content-Length headers

1 participant