Skip to content

test: reject identical DNS-prefetch control duplicates - #1334

Merged
fewensa merged 1 commit into
mainfrom
agt/codeoo-round2-dns-duplicate
Oct 3, 2026
Merged

fewensa merged 1 commit into
mainfrom
agt/codeoo-round2-dns-duplicate

Conversation

@fewensa

@fewensa fewensa commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Problem

The response metadata parser rejects conflicting duplicate X-DNS-Prefetch-Control fields, but this invariant was not explicitly covered for identical values.

Change

Add a focused regression test that verifies duplicate fields are preserved by the generic header accessor and rejected by the typed metadata accessor even when both values are identical.

Validation

  • cargo test -p rttp_client --test test_response x_dns_prefetch_control_metadata --locked

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-03T17:45:36.633624Z bdadef0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@fewensa
fewensa merged commit 7e02acf into main Oct 3, 2026
19 checks passed
@fewensa
fewensa deleted the agt/codeoo-round2-dns-duplicate branch October 3, 2026 18:27
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