-
Notifications
You must be signed in to change notification settings - Fork 36
Fix requests patching edge case #146
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #146 +/- ##
==========================================
+ Coverage 87.65% 87.95% +0.30%
==========================================
Files 29 29
Lines 972 980 +8
Branches 169 169
==========================================
+ Hits 852 862 +10
+ Misses 82 81 -1
+ Partials 38 37 -1
Continue to review full report at Codecov.
|
|
||
if (isIntegrationTest()) { | ||
_logHttpRequest(requestOpts); | ||
if (arg3 === undefined || arg3 === null) { |
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.
I would add a comment here explaining why this is necessary
options = { ...options, ...arg2 }; | ||
|
||
let requestOpts: http.RequestOptions | undefined; | ||
if (typeof arg1 === "string" || arg1 instanceof URL) { |
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.
Likewise I might add comments here to describe the different cases
* main: Bump version to 3.42.0 Fix requests patching edge case (#146)
What does this PR do?
Fixes the x-ray only http patching behavior, to account for broken case.
Motivation
Issue #134
Testing Guidelines
In addition to the new test cases, I've tested this manually in a lambda and verified the request was able to complete correctly.
Additional Notes
Types of Changes
Check all that apply