KEMBAR78
chore(gensupport): merge x-goog-api-client vals into a single header by BrennaEpp · Pull Request #2612 · googleapis/google-api-go-client · GitHub
Skip to content

Conversation

@BrennaEpp
Copy link
Contributor

No description provided.

@BrennaEpp BrennaEpp marked this pull request as ready for review June 4, 2024 21:39
@BrennaEpp BrennaEpp requested a review from a team as a code owner June 4, 2024 21:39
@BrennaEpp BrennaEpp requested review from codyoss and tritone June 4, 2024 21:39
@BrennaEpp BrennaEpp changed the title draft(gensupport): merge x-goog-api-client vals into a single header chore(gensupport): merge x-goog-api-client vals into a single header Jun 4, 2024
Copy link
Member

@quartzmo quartzmo left a 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?

@BrennaEpp BrennaEpp requested review from quartzmo and shollyman June 6, 2024 20:32
Copy link
Contributor

@tritone tritone left a 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.

for _, v := range vals {
req.Header.Add(k, v)
if k != "x-goog-api-client" {
for _, v := range vals {
Copy link
Contributor

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".

@BrennaEpp BrennaEpp enabled auto-merge (squash) June 10, 2024 20:42
@BrennaEpp BrennaEpp merged commit e760319 into googleapis:main Jun 10, 2024
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.

4 participants