Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default add progress to false, unless using CLI #3025

Merged
merged 1 commit into from
Aug 1, 2016

Conversation

whyrusleeping
Copy link
Member

Should fix issues seen in ipfs-inactive/js-ipfs-http-client#323

License: MIT
Signed-off-by: Jeromy [email protected]

@@ -81,6 +81,11 @@ You can now refer to the added file in a gateway, like so:
return nil
}

_, found, _ := req.Option(progressOptionName).Bool()
Copy link
Member

@Kubuxu Kubuxu Aug 1, 2016

Choose a reason for hiding this comment

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

That seems quite cheaty.
Maybe we should just introduce something like request agent to the Request object.

Copy link
Member Author

Choose a reason for hiding this comment

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

That might be a good idea, except it changes the http api. which i'm explicitly trying to avoid right now.

Copy link
Member

Choose a reason for hiding this comment

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

I have missed that the code is in PreRun function.

Everything is much less hacky now.

@Kubuxu
Copy link
Member

Kubuxu commented Aug 1, 2016

LGTM

@whyrusleeping whyrusleeping merged commit 33510a9 into master Aug 1, 2016
@whyrusleeping whyrusleeping deleted the fix/progress-defaults branch August 1, 2016 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants