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

feat: support sending x-goog-request-params (and other extra) headers for fallback requests #568

Merged
merged 3 commits into from
Aug 9, 2019

Conversation

ramya-ramalingam
Copy link
Contributor

Changed constructSettings() and createStub() to support sending extra headers (set in options) through fallback requests.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 8, 2019
@alexander-fenster alexander-fenster changed the title Adding functionality to support sending x-goog-request-params (and other extra) headers for browser feat: support sending x-goog-request-params (and other extra) headers for browser Aug 8, 2019
@codecov
Copy link

codecov bot commented Aug 8, 2019

Codecov Report

Merging #568 into master will decrease coverage by 0.3%.
The diff coverage is 3.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #568      +/-   ##
==========================================
- Coverage   79.68%   79.37%   -0.31%     
==========================================
  Files          58       58              
  Lines        3760     3777      +17     
  Branches      300      305       +5     
==========================================
+ Hits         2996     2998       +2     
- Misses        697      712      +15     
  Partials       67       67
Impacted Files Coverage Δ
src/browser.ts 18.96% <3.5%> (-1.24%) ⬇️

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 3131b7a...b0b703f. Read the comment docs.

@ramya-ramalingam ramya-ramalingam changed the title feat: support sending x-goog-request-params (and other extra) headers for browser feat: support sending x-goog-request-params (and other extra) headers for fallback requests Aug 8, 2019
Copy link
Contributor

@alexander-fenster alexander-fenster left a comment

Choose a reason for hiding this comment

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

That's cool, especially the refactoring that makes it look so much more readable!

I left some minor comments. Also, can we have at least one quick unit test that verifies that the headers are actually sent?

src/browser.ts Outdated Show resolved Hide resolved
src/browser.ts Outdated Show resolved Hide resolved
src/browser.ts Show resolved Hide resolved
src/browser.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@LibanOdowa LibanOdowa left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@noahdietz noahdietz left a comment

Choose a reason for hiding this comment

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

LGTM after resolving Alex's comments

@alexander-fenster alexander-fenster merged commit a1e6570 into master Aug 9, 2019
@alexander-fenster alexander-fenster deleted the ExtraHeaderStuff2 branch August 9, 2019 19:12
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.

5 participants