|
|
@ -1169,7 +1169,11 @@ ClientRequest.prototype.onSocket = function(socket) { |
|
|
|
socket.destroy(); |
|
|
|
} |
|
|
|
freeParser(); |
|
|
|
} else if (parser.incoming && parser.incoming.complete) { |
|
|
|
} else if (parser.incoming && parser.incoming.complete && |
|
|
|
// When the status code is 100 (Continue), the server will
|
|
|
|
// send a final response after this client sends a request
|
|
|
|
// body. So, we must not free the parser.
|
|
|
|
parser.incoming.statusCode !== 100) { |
|
|
|
freeParser(); |
|
|
|
} |
|
|
|
}; |
|
|
|