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

Allow all opts for cmd:cat, to support the timeout flag #1034

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/files-regular/cat.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,7 @@ module.exports = (send) => {
}
}

const query = {
offset: opts.offset,
length: opts.length
}

send({ path: 'cat', args: hash, buffer: opts.buffer, qs: query }, (err, stream) => {
send({ path: 'cat', args: hash, buffer: opts.buffer, qs: opts }, (err, stream) => {
if (err) { return callback(err) }

stream.pipe(bl((err, data) => {
Expand Down