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

fix: don't append x-goog-api-client multiple times #820

Merged
merged 1 commit into from Oct 22, 2019
Merged

fix: don't append x-goog-api-client multiple times #820

merged 1 commit into from Oct 22, 2019

Conversation

bcoe
Copy link
Contributor

@bcoe bcoe commented Oct 22, 2019

because options are passed by reference and not copied, a user specifying their own headers in gax options resulted in x-goog-api-client headers being appended multiple times.

fixes #819

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 22, 2019
@codecov
Copy link

codecov bot commented Oct 22, 2019

Codecov Report

Merging #820 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #820      +/-   ##
==========================================
+ Coverage   84.54%   84.57%   +0.03%     
==========================================
  Files          17       17              
  Lines         951      953       +2     
  Branches      211      213       +2     
==========================================
+ Hits          804      806       +2     
  Misses         87       87              
  Partials       60       60
Impacted Files Coverage Δ
src/transporters.ts 90.38% <100%> (+0.38%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6730698...53ee488. Read the comment docs.

@bcoe bcoe merged commit a46b271 into master Oct 22, 2019
@bcoe bcoe deleted the 819-fix branch October 22, 2019 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

x-goog-api-client header is being increased after each call to request method
3 participants