Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit b0a6db9

Browse files
jbenetdaviddias
authored andcommitted
fix(http): get handler reads the stream
1 parent cb10ab7 commit b0a6db9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/http-api/resources/files.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,12 @@ exports.get = {
9494
if (err) return handleError(err)
9595

9696
pack.finalize()
97-
reply(pack).header('X-Stream-Output', '1')
9897
})
9998
)
99+
100+
// the reply must read the tar stream,
101+
// to pull values through
102+
reply(pack).header('X-Stream-Output', '1')
100103
})
101104

102105
function handleError (err) {

0 commit comments

Comments
 (0)