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 committed Sep 11, 2016
1 parent 2b98773 commit 72d35c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/http-api/resources/files.js
Original file line number Diff line number Diff line change
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 72d35c0

Please sign in to comment.