[Pkg-javascript-commits] [node-stream-http] 34/208: Emit 'socket' for fetch

Bastien Roucariès rouca at moszumanska.debian.org
Sun Aug 13 13:39:25 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-stream-http.

commit cb14102dcdc9aef02949aaeb4f53c950b1c25a3a
Author: John Hiesey <john at hiesey.com>
Date:   Tue Jul 7 20:25:03 2015 -0700

    Emit 'socket' for fetch
---
 lib/request.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/request.js b/lib/request.js
index 81befab..1e198d4 100644
--- a/lib/request.js
+++ b/lib/request.js
@@ -170,10 +170,10 @@ ClientRequest.prototype._onFinish = function () {
 			})
 			return
 		}
-
-		// This is the best approximation to where 'socket' should be fired
-		self.emit('socket')
 	}
+
+	// This is the best approximation to where 'socket' should be fired
+	self.emit('socket')
 }
 
 /**

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-stream-http.git



More information about the Pkg-javascript-commits mailing list