Skip to content

Commit

Permalink
fix(gateway): catch stream2 error (ipfs#1243)
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Yahya <[email protected]>
  • Loading branch information
ya7ya authored and JonKrone committed Mar 3, 2018
1 parent 2d36155 commit abb7731
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/http/gateway/resources/gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ module.exports = {
// response.continue()
let filetypeChecked = false
let stream2 = new Stream.PassThrough({ highWaterMark: 1 })
stream2.on('error', (err) => {
log.error('stream2 err: ', err)
})

let response = reply(stream2).hold()

pull(
Expand Down

0 comments on commit abb7731

Please sign in to comment.