Skip to content
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

Merged
merged 5 commits into from
Jun 10, 2024

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 tritone and codyoss 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
5 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.

4 participants