Thanks to visit codestin.com
Credit goes to github.com

Skip to content

♻️ Do not accept underscore headers when using convert_underscores=True (the default)#15589

Merged
tiangolo merged 1 commit into
masterfrom
no-underscore-headers
May 23, 2026
Merged

♻️ Do not accept underscore headers when using convert_underscores=True (the default)#15589
tiangolo merged 1 commit into
masterfrom
no-underscore-headers

Conversation

@tiangolo

Copy link
Copy Markdown
Member

Pull Request

Discussion:

Description

♻️ Do not accept underscore headers when using convert_underscores=True (the default)

This means it would only accept header names separated with hyphens by default, and to accept header names separated with underscores, an app would need to explicitly set convert_underscores=False.

AI Disclaimer

AI transcript

Checklist

  • This PR is an obvious typo fix, or it links to a GitHub Discussion for the proposed code change.
  • I added tests for the change.
  • The new or updated tests fail on the main branch and pass on this PR.
  • Coverage stays at 100%.
  • The documentation explains the change if needed.

@tiangolo tiangolo marked this pull request as ready for review May 23, 2026 18:29
@tiangolo tiangolo enabled auto-merge (squash) May 23, 2026 18:29
@codspeed-hq

codspeed-hq Bot commented May 23, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 20 untouched benchmarks


Comparing no-underscore-headers (20f9be2) with master (22b02e2)

Open in CodSpeed

@tiangolo tiangolo merged commit 063b5bf into master May 23, 2026
40 of 41 checks passed
@tiangolo tiangolo deleted the no-underscore-headers branch May 23, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant