Skip to content

parse cache-control directive case-insensitively - #467

Merged
woodruffw merged 1 commit into
psf:masterfrom
trail-of-forks:ptp/fix-6
Aug 29, 2026
Merged

parse cache-control directive case-insensitively#467
woodruffw merged 1 commit into
psf:masterfrom
trail-of-forks:ptp/fix-6

Conversation

@ogalland-tob

Copy link
Copy Markdown
Contributor

CacheControl matches Cache-Control directive names case-sensitively, although RFC 9111 requires case-insensitive matching. Valid directives such as No-Store are therefore ignored.

This PR normalizes directive name cases and introduces a test case.

@woodruffw woodruffw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, good catch!

@woodruffw
woodruffw merged commit c3c73a2 into psf:master Aug 29, 2026
17 checks passed
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.

2 participants