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

Commit

Permalink
fix(http): get handler reads the stream
Browse files Browse the repository at this point in the history
  • Loading branch information
jbenet authored and daviddias committed Sep 12, 2016
1 parent cb10ab7 commit b0a6db9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/http-api/resources/files.js
Expand Up @@ -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) {
Expand Down

0 comments on commit b0a6db9

Please sign in to comment.