From b0a6db910da882bceacc6087bb43abd36cbdb87d Mon Sep 17 00:00:00 2001 From: jbenet Date: Sun, 11 Sep 2016 02:02:36 -0400 Subject: [PATCH] fix(http): get handler reads the stream --- src/http-api/resources/files.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/http-api/resources/files.js b/src/http-api/resources/files.js index 38e755fd11..b5309b6de6 100644 --- a/src/http-api/resources/files.js +++ b/src/http-api/resources/files.js @@ -94,9 +94,12 @@ exports.get = { if (err) return handleError(err) pack.finalize() - reply(pack).header('X-Stream-Output', '1') }) ) + + // the reply must read the tar stream, + // to pull values through + reply(pack).header('X-Stream-Output', '1') }) function handleError (err) {