Skip to content

Commit 974185c

Browse files
committed
updates
1 parent 54a3721 commit 974185c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/connectors/http.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ HttpConnector.prototype.request = function(params, cb) {
196196
response += d;
197197
} catch (error) {
198198
// When stringified response is too big, we will catch this moment
199-
// and throw an error to make sure server is NOT crashed
200-
this.emit('end', error);
199+
// and destroy it to make sure server is NOT crashed
200+
this.destroy(error);
201201
}
202202
});
203203

0 commit comments

Comments
 (0)