Skip to content

Normalize version header names to lower-case #1221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 2, 2025

Conversation

Mr0grog
Copy link
Member

@Mr0grog Mr0grog commented Mar 31, 2025

HTTP headers names are not case-sensitive, so normalize the keys on Version.headers to be lower-case strings to simplify usage. This also drops some long-deprecated import format handling where headers were part of source_metadata.

Includes a data migration task to normalize all existing headers in version records. Future updates will automatically be normalized by the new code.

Fixes #1194.

Mr0grog added 2 commits March 30, 2025 19:28
HTTP headers names are not case-sensitive, so normalize the keys on `Version.headers` to be lower-case strings to simplify usage. This also drops some long-deprecated import format handling where headers were part of `source_metadata`.

Fixes #1194.
@Mr0grog Mr0grog merged commit cf3f188 into main Apr 2, 2025
5 checks passed
@Mr0grog Mr0grog deleted the 1194-we-dont-handle-http1-vs-http2-headers-very-well branch April 2, 2025 02:30
@github-project-automation github-project-automation bot moved this from Inbox to Done in Web Monitoring Apr 2, 2025
github-actions bot pushed a commit that referenced this pull request Apr 2, 2025
Mr0grog added a commit to edgi-govdata-archiving/web-monitoring-ops that referenced this pull request Apr 2, 2025
Mr0grog added a commit that referenced this pull request Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Header field names should all be lower-cased in Version model
1 participant