Skip to content

digest: check peer equality for staleness - #22828

Closed
icing wants to merge 1 commit into
curl:masterfrom
icing:digest-check-peer-equal
Closed

icing wants to merge 1 commit into
curl:masterfrom
icing:digest-check-peer-equal

Conversation

@icing

@icing icing commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Check that current peer is equal from last peer's state information. This accomodates also scheme changes, which the previous check did not.

Check that current peer is *equal* from last peer's
state information. This accomodates also scheme changes,
which the previous check did not.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

A regression test for scheme-only changes is required before approval.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates Digest authentication state invalidation to account for URL scheme changes.

Changes:

  • Uses full peer equality, including scheme, before reusing Digest state.
  • Requires a regression test covering scheme-only peer changes.
File summaries
File Description
lib/http_digest.c Resets Digest state when peer details, including scheme, change.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lib/http_digest.c
@bagder bagder closed this in ea90a97 Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants