-
Notifications
You must be signed in to change notification settings - Fork 92
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
Conversation
x-goog-request-params
(and other extra) headers for browser x-goog-request-params
(and other extra) headers for browser
bc33933
to
0069eb1
Compare
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
x-goog-request-params
(and other extra) headers for browser x-goog-request-params
(and other extra) headers for fallback requests
There was a problem hiding this 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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this 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
Changed constructSettings() and createStub() to support sending extra headers (set in options) through fallback requests.