-
Notifications
You must be signed in to change notification settings - Fork 125
fix: 🐛 should trigger response event when follow redirect #361
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: 🐛 should trigger response event when follow redirect #361
Conversation
Codecov Report
@@ Coverage Diff @@
## master #361 +/- ##
===========================================
+ Coverage 44.05% 93.17% +49.11%
===========================================
Files 6 6
Lines 799 820 +21
Branches 218 221 +3
===========================================
+ Hits 352 764 +412
+ Misses 447 56 -391
Continue to review full report at Codecov.
|
test/urllib_promise.test.js
Outdated
@@ -38,6 +38,7 @@ describe('test/urllib_promise.test.js', function () { | |||
timeout: 20000 | |||
}) | |||
.then(function (result) { | |||
console.dir(result); |
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.
remove this console?
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.
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.
others LGTM
2.37.2 released |
现有 followRedirect 的情况下,response 事件只会触发一次(redirect 之后的请求的 response),request 会触发两次(redirect 前请求的 resquest 和 request 之后的 response)