Skip to content

Commit

Permalink
fix: mock http error response need socket (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-horse authored and fengmk2 committed Jul 12, 2018
1 parent 05bd7f7 commit 2cd32f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mm.js
Expand Up @@ -416,6 +416,7 @@ function _requestError(mod, url, reqError, resError, delay) {
read() {},
write() {},
});
res.socket = req.socket;
res.statusCode = 200;
res.headers = {
server: 'MockMateServer',
Expand Down

0 comments on commit 2cd32f9

Please sign in to comment.