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

fix: Always return the underlying request object #177

Merged
merged 1 commit into from
Jan 21, 2016
Merged

Conversation

dignifiedquire
Copy link
Contributor

No description provided.

@@ -8,15 +8,13 @@ module.exports = send => {
}

if (typeof files === 'string' && files.startsWith('http')) {
Wreck.request('GET', files, null, (err, res) => {
return Wreck.request('GET', files, null, (err, res) => {
if (err) return cb(err)

send('add', null, opts, res, cb)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a note here that ipfsAPI().add() doesn't return the right request.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

daviddias added a commit that referenced this pull request Jan 21, 2016
fix: Always return the underlying request object
@daviddias daviddias merged commit b81591e into master Jan 21, 2016
@daviddias daviddias deleted the return-req branch January 21, 2016 15:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants