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

httpbakery: ensure no read after DoWithBody #98

Merged
merged 1 commit into from
May 3, 2016

Conversation

rogpeppe
Copy link
Member

@rogpeppe rogpeppe commented May 3, 2016

This juju bug https://bugs.launchpad.net/juju-core/+bug/1576509
shows that reading after a request has returned, which
http.Client.Do can (see Go issue golang/go#12796) is a problem.

Ensure that DoWithBody can never do that by closing
the existing readStopper body which is in place for
just that reason.

This juju bug https://bugs.launchpad.net/juju-core/+bug/1576509
shows that reading after a request has returned, which
http.Client.Do can (see Go issue #12796) is a problem.

Ensure that DoWithBody can never do that by closing
the existing readStopper body which is in place for
just that reason.
@urosj
Copy link

urosj commented May 3, 2016

LGTM

@mhilton
Copy link
Contributor

mhilton commented May 3, 2016

👍

@rogpeppe rogpeppe merged commit c8e0209 into go-macaroon-bakery:v1 May 3, 2016
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.

3 participants