Skip to content

chore(v2): merge x-goog-api-client vals into a single header#354

Merged
quartzmo merged 4 commits intogoogleapis:mainfrom
BrennaEpp:merge-xgoog
Jun 18, 2024
Merged

chore(v2): merge x-goog-api-client vals into a single header#354
quartzmo merged 4 commits intogoogleapis:mainfrom
BrennaEpp:merge-xgoog

Conversation

@BrennaEpp
Copy link
Copy Markdown
Contributor

No description provided.

@BrennaEpp BrennaEpp requested a review from a team June 4, 2024 22:47
Copy link
Copy Markdown

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

LGTM

Comment thread v2/header.go
}
}
for i := 0; i < len(keyvals); i = i + 2 {
out[keyvals[i]] = append(out[keyvals[i]], keyvals[i+1])
Copy link
Copy Markdown
Member

@quartzmo quartzmo Jun 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you want to skip setting this for the x-goog-api-client header? Maybe move this line below the if block below, and add a continue statement to the end of the if block? This is not necessary due to the overwrite on line 196, but might seem cleaner.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, I'll change that.

@quartzmo quartzmo merged commit 55d7a85 into googleapis:main Jun 18, 2024
@BrennaEpp BrennaEpp deleted the merge-xgoog branch June 18, 2024 22:26
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.

3 participants