Skip to content

setopt: more careful cleanup of the HSTS cache#21615

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/hsts-cleanup
Closed

setopt: more careful cleanup of the HSTS cache#21615
bagder wants to merge 2 commits into
masterfrom
bagder/hsts-cleanup

Conversation

@bagder
Copy link
Copy Markdown
Member

@bagder bagder commented May 14, 2026

Reported-by: Joshua Rogers

@bagder bagder marked this pull request as ready for review May 14, 2026 22:05
@bagder bagder requested a review from Copilot May 14, 2026 22:05
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts CURLOPT_HSTS_CTRL handling so disabling HSTS does not clean up a cache owned by a share handle.

Changes:

  • Adds a guard to skip HSTS cache cleanup when the easy handle uses a shared HSTS cache.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/setopt.c Outdated
Comment thread lib/setopt.c Outdated
@bagder bagder force-pushed the bagder/hsts-cleanup branch from adae1b4 to 8a55a7c Compare May 15, 2026 11:48
@bagder bagder closed this in d6571f7 May 15, 2026
@bagder bagder deleted the bagder/hsts-cleanup branch May 15, 2026 23:05
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants