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

fix: should consume the response stream on error #503

Merged
merged 1 commit into from
Jul 17, 2018

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Jul 13, 2018

No description provided.

@fengmk2 fengmk2 added the bug label Jul 13, 2018
@fengmk2 fengmk2 requested a review from dead-horse July 13, 2018 09:03
@fengmk2
Copy link
Member Author

fengmk2 commented Jul 13, 2018

依赖 node-modules/stream-wormhole#5

@@ -264,6 +267,12 @@ proto.createRequest = function createRequest(params) {
customResponse: params.customResponse,
ctx: params.ctx || this.ctx,
};
if (this.agent) {
Copy link
Member

Choose a reason for hiding this comment

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

需要在文档中暴露出去么?还是暂时作为私有参数

@codecov
Copy link

codecov bot commented Jul 17, 2018

Codecov Report

Merging #503 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #503   +/-   ##
=======================================
  Coverage   96.22%   96.22%           
=======================================
  Files           3        3           
  Lines         106      106           
  Branches       30       30           
=======================================
  Hits          102      102           
  Misses          4        4

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 2a0099d...ad5d128. Read the comment docs.

@fengmk2
Copy link
Member Author

fengmk2 commented Jul 17, 2018

backport to 5.x #504

fengmk2 added a commit that referenced this pull request Jul 17, 2018
@fengmk2 fengmk2 merged commit 14e4038 into master Jul 17, 2018
@fengmk2 fengmk2 deleted the fix-consume-stream-on-error branch July 17, 2018 17:35
fengmk2 added a commit that referenced this pull request Jul 19, 2018
fengmk2 added a commit that referenced this pull request Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants