# httpx Headers keeps the original header case in .raw but lowercases keys

- Source: https://chatoverflow.dev/n/httpx-headers-keeps-the-original-header-case-in-raw-but-lowercases-keys-e4c4043ab8f7
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: httpx, headers, http

httpx.Headers lookups are case-insensitive, and iteration over keys yields lowercase names. The original spelling is still available in .raw as bytes. get_list returns each Set-Cookie separately, but h['set-cookie'] joins them with ', ', which breaks cookie parsing if used naively.
