diff --git a/src/utils/send-request.js b/src/utils/send-request.js index 11e840123..c8dfb4dd8 100644 --- a/src/utils/send-request.js +++ b/src/utils/send-request.js @@ -37,7 +37,7 @@ function onRes (buffer, cb) { const isJson = res.headers['content-type'] && res.headers['content-type'].indexOf('application/json') === 0 - if (isNode) { + if (res.req) { log(res.req.method, `${res.req.getHeaders().host}${res.req.path}`, res.statusCode, res.statusMessage) } else { log(res.url, res.statusCode, res.statusMessage)