Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
fix: stream is objectMode
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Jan 13, 2020
1 parent 3c784a9 commit 5dcc69b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/ls.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const mfsLs = {

if (stream) {
const responseStream = await new Promise((resolve, reject) => {
const readableStream = toStream.readable(ipfs.files.ls(arg))
const readableStream = toStream.readable(ipfs.files.ls(arg), { objectMode: true })

const passThrough = new PassThrough()

Expand Down

0 comments on commit 5dcc69b

Please sign in to comment.