-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(gensupport): merge x-goog-api-client vals into a single header #2612
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you expand TestSendRequestHeader
(or add a new test) to cover this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good; thanks for adding the test.
internal/gensupport/send.go
Outdated
for _, v := range vals { | ||
req.Header.Add(k, v) | ||
if k != "x-goog-api-client" { | ||
for _, v := range vals { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: could you flip this conditional? Seems more readable to have the default case as the "else".
No description provided.