From 289f1547ab26bbfb9e45f6c4ce4a55cdb146188d Mon Sep 17 00:00:00 2001 From: Kevin Date: Mon, 29 Aug 2016 16:10:46 +0200 Subject: [PATCH] Use headers instead of whole response --- src/drivers/npm/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drivers/npm/index.js b/src/drivers/npm/index.js index c88b7cde1..74843cd9d 100644 --- a/src/drivers/npm/index.js +++ b/src/drivers/npm/index.js @@ -29,7 +29,7 @@ exports.detectFromHTML = function(options, data, cb) { /** * Do a actual request for the body & headers, then * run through detection -**/ +**/ exports.detectFromUrl = function(options, cb) { // ensure options and url were @@ -59,7 +59,7 @@ exports.detectFromUrl = function(options, cb) { exports.detect(options, data, cb); } - + }); } @@ -71,7 +71,7 @@ function getHTMLFromUrl(url, cb) { var data = { html: body, url: url, - headers: response + headers: response.headers }; cb(null, data); } else {