Skip to content

Commit bd925a3

Browse files
authored
Update http-tracker.js
1 parent 7ec91eb commit bd925a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/client/http-tracker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,12 @@ class HTTPTracker extends Tracker {
225225
_onScrapeResponse (data) {
226226
// NOTE: the unofficial spec says to use the 'files' key, 'host' has been
227227
// seen in practice
228+
const raw = data
228229
data = data.files || data.host || {}
229230

230231
const keys = Object.keys(data)
231232
if (keys.length === 0) {
233+
console.debug(raw)
232234
this.client.emit('warning', new Error('invalid scrape response'))
233235
return
234236
}

0 commit comments

Comments
 (0)