Skip to content

Commit 98d1b0a

Browse files
committed
only handle response if there is any data
1 parent 59d3c01 commit 98d1b0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Tracker.prototype._requestHttp = function (requestUrl, opts) {
153153
return
154154
}
155155
res.pipe(concat(function (data) {
156-
self._handleResponse(requestUrl, data)
156+
if (data && data.length) self._handleResponse(requestUrl, data)
157157
}))
158158
})
159159

0 commit comments

Comments
 (0)