From 98d1b0a17c61686eb89586c9c729562597078912 Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Thu, 22 May 2014 17:42:44 +0200 Subject: [PATCH] only handle response if there is any data --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a7248fd..60f336b 100644 --- a/index.js +++ b/index.js @@ -153,7 +153,7 @@ Tracker.prototype._requestHttp = function (requestUrl, opts) { return } res.pipe(concat(function (data) { - self._handleResponse(requestUrl, data) + if (data && data.length) self._handleResponse(requestUrl, data) })) })