-
Notifications
You must be signed in to change notification settings - Fork 118
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: add defaultArgs on HttpClient #261
Conversation
@fengmk2, thanks for your PR! By analyzing the history of the files in this pull request, we identified @popomore and @dead-horse to be potential reviewers. |
self.request(url, args) | ||
.catch(done) |
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.
fix promise bug too.
catch 放上面应该只处理当前 request 的错误,显示是会处理之前所有的 request 的异常。 不过 promise 的递归比较难维护。 |
callback twice 的历史问题终于找到根本原因 nodejs/node#14333 |
ecb7391
to
e9bd118
Compare
Codecov Report
@@ Coverage Diff @@
## master #261 +/- ##
==========================================
+ Coverage 97.41% 97.83% +0.41%
==========================================
Files 4 4
Lines 542 553 +11
Branches 136 139 +3
==========================================
+ Hits 528 541 +13
+ Misses 14 12 -2
Continue to review full report at Codecov.
|
42ee7e8
to
aba453f
Compare
No description provided.