From c6b04f27342e0b61cba686f88e530c9e8eaf563e Mon Sep 17 00:00:00 2001 From: Vsevolod Strukchinsky Date: Fri, 24 Apr 2015 00:40:57 +0500 Subject: [PATCH] add test on headers in gzipped response --- test/test-gzip.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/test-gzip.js b/test/test-gzip.js index 9bbe7d0..7391ce6 100644 --- a/test/test-gzip.js +++ b/test/test-gzip.js @@ -44,6 +44,14 @@ tape('ungzip error', function (t) { }); }); +tape('preserve headers property', function (t) { + got(s.url, function (err, data, res) { + t.error(err); + t.ok(res.headers); + t.end(); + }); +}); + tape('cleanup', function (t) { s.close(); t.end();