only handle response if there is any data

This commit is contained in:
Mathias Buus 2014-05-22 17:42:44 +02:00
parent 59d3c01937
commit 98d1b0a17c

View File

@ -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)
}))
})