Skip to content

Header names from scope not lowercased in datastructures.Headers constructor #2759

Closed Answered by Kludex
viccie30 asked this question in Potential Issue
Discussion options

You must be logged in to vote

I can see why it would be frustrating, but I can also see why the behavior is the way it is: scope["headers"] would be the same as passing the raw, which doesn't need to do the lower casing.

Also, both TestClient and httpx.AsyncClient (ASGI) do the lower casing of headers...

It's also the first time I see this complaint. I'd say the current behavior is fine.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kludex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants