Comparing version 2.8.0 to 2.8.1
@@ -5,2 +5,6 @@ # restify Changelog | ||
## 2.8.1 | ||
- revert #604, work around by not removing client listener | ||
## 2.8.0 | ||
@@ -7,0 +11,0 @@ |
@@ -144,2 +144,6 @@ // Copyright 2012 Mark Cavage, Inc. All rights reserved. | ||
var emit_result = once(function _emit_result(_err, _req, _res) { | ||
_req.emit('result', _err, _res); | ||
}); | ||
var req = proto.request(opts, function onResponse(res) { | ||
@@ -160,9 +164,5 @@ clearTimeout(connectionTimer); | ||
req.removeAllListeners('error'); | ||
req.removeAllListeners('socket'); | ||
req.on('error', function (err2) { | ||
err = err2; | ||
}); | ||
req.emit('result', (err || null), res); | ||
emit_result((err || null), req, res); | ||
}); | ||
@@ -182,3 +182,3 @@ req.log = log; | ||
process.nextTick(function () { | ||
req.emit('result', err, null); | ||
emit_result(err, req, null); | ||
}); | ||
@@ -185,0 +185,0 @@ } |
@@ -36,3 +36,3 @@ { | ||
"description": "REST framework", | ||
"version": "2.8.0", | ||
"version": "2.8.1", | ||
"repository": { | ||
@@ -39,0 +39,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
178959
4626