refactor!: Canonicalize request headers
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
This MR updates string header values to use their canonical forms. This was found with the help of the canonicalheader linter.
Internally, when headers are retrieved or set, they are automatically converted to their canonical form using textproto.MIMEHeader:
-
PRIVATE-TOKEN->Private-Token -
RateLimit-Limit->Ratelimit-Limit
Edited by 🤖 GitLab Bot 🤖