Skip to content

refactor: centralize case-sensitive header handling in internal/headers#153

Merged
mslipper merged 1 commit into
mainfrom
feat/header-refactor
May 25, 2026
Merged

refactor: centralize case-sensitive header handling in internal/headers#153
mslipper merged 1 commit into
mainfrom
feat/header-refactor

Conversation

@mslipper

Copy link
Copy Markdown
Contributor

Promotes the case-preservation header helpers out of internal/transform into a dedicated internal/headers package, expands the API to cover bulk-apply and swap-with-wire-casing, and migrates every call site that previously inlined direct http.Header map assignment (broker/refresh, oauth grant transport, secrets inject + swap, hmacsign). The "why bypass Set" comment now lives in exactly one file.

Promote the case-preservation helpers out of internal/transform into a
dedicated internal/headers package, expand the API to cover bulk-apply
and swap-with-wire-casing, and migrate every call site that previously
inlined direct http.Header map assignment (broker/refresh, oauth grant
transport, secrets inject + swap, hmacsign). The "why bypass Set" comment
now lives in exactly one file.
@mslipper mslipper merged commit b396dcc into main May 25, 2026
7 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.

1 participant