summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/_http_client.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/_http_client.js b/lib/_http_client.js
index fcd7ca90ac..11e946c893 100644
--- a/lib/_http_client.js
+++ b/lib/_http_client.js
@@ -545,7 +545,15 @@ function parserOnIncomingClient(res, shouldKeepAlive) {
req.emit('continue');
}
// Send information events to all 1xx responses except 101 Upgrade.
- req.emit('information', { statusCode: res.statusCode });
+ req.emit('information', {
+ statusCode: res.statusCode,
+ statusMessage: res.statusMessage,
+ httpVersion: res.httpVersion,
+ httpVersionMajor: res.httpVersionMajor,
+ httpVersionMinor: res.httpVersionMinor,
+ headers: res.headers,
+ rawHeaders: res.rawHeaders
+ });
return 1; // Skip body but don't treat as Upgrade.
}