summaryrefslogtreecommitdiff
path: root/lib/_http_incoming.js
diff options
context:
space:
mode:
authorMichaƫl Zasso <mic.besace@gmail.com>2015-05-31 13:25:27 +0200
committerRoman Reiss <me@silverwind.io>2015-05-31 20:37:44 +0200
commit4d6b768e5d8d04c76eb1d13bb3750dcc8d9935b2 (patch)
treeb5ad148473638ff53cf80a502f4a0c5e72d64c9c /lib/_http_incoming.js
parent5d83401086e40fb51b2017d3b6edd7d83c6bd484 (diff)
downloadandroid-node-v8-4d6b768e5d8d04c76eb1d13bb3750dcc8d9935b2.tar.gz
android-node-v8-4d6b768e5d8d04c76eb1d13bb3750dcc8d9935b2.tar.bz2
android-node-v8-4d6b768e5d8d04c76eb1d13bb3750dcc8d9935b2.zip
http: revert deprecation of client property
The improper deprecation of the property broke a feature in the request module used by the bundled npm. This reverts the deprecation part of this change. PR-URL: https://github.com/nodejs/io.js/pull/1852 Fixes: https://github.com/nodejs/io.js/issues/1850 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'lib/_http_incoming.js')
-rw-r--r--lib/_http_incoming.js12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/_http_incoming.js b/lib/_http_incoming.js
index 295a3ef4bd..e16f198dba 100644
--- a/lib/_http_incoming.js
+++ b/lib/_http_incoming.js
@@ -47,7 +47,7 @@ function IncomingMessage(socket) {
// response (client) only
this.statusCode = null;
this.statusMessage = null;
- this._client = socket; // deprecated
+ this.client = socket;
// flag for backwards compatibility grossness.
this._consuming = false;
@@ -61,16 +61,6 @@ util.inherits(IncomingMessage, Stream.Readable);
exports.IncomingMessage = IncomingMessage;
-Object.defineProperty(IncomingMessage.prototype, 'client', {
- configurable: true,
- enumerable: true,
- get: util.deprecate(function() {
- return this._client;
- }, 'client is deprecated, use socket or connection instead'),
- set: util.deprecate(function(val) {
- this._client = val;
- }, 'client is deprecated, use socket or connection instead')
-});
IncomingMessage.prototype.setTimeout = function(msecs, callback) {
if (callback)