From 64111c5cc96f7adaf3e76a2ec12f2b17b6fb6ee3 Mon Sep 17 00:00:00 2001 From: Miroslav Balaz Date: Sat, 6 Mar 2021 09:20:59 +0100 Subject: [PATCH] Propagation of response.encoding (#79) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * propagation of response.encoding * fixed linter errors Co-authored-by: Miroslav Baláž --- lib/entryFromResponse.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/entryFromResponse.js b/lib/entryFromResponse.js index 6364720..69d1eb0 100644 --- a/lib/entryFromResponse.js +++ b/lib/entryFromResponse.js @@ -79,8 +79,9 @@ module.exports = function(entry, response, page, options) { status: response.status, statusText: response.statusText, content: { + encodig: response.encoding, mimeType: response.mimeType, - size: 0, + size: text != null ? text.length : 0, text: text }, headersSize: -1,