refactor!: Canonicalize request headers

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 🤖

Merge request reports

Loading