Merge pull request #20 from mafintosh/no-data-fix

only handle response if there is any data
This commit is contained in:
Feross Aboukhadijeh 2014-05-22 11:27:04 -07:00
commit 72b7608acd

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