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

Invoke self._result passing json=True when decode=True #1082

Merged
merged 1 commit into from
Aug 23, 2016

Conversation

masci
Copy link

@masci masci commented Jun 7, 2016

The generator should yield a decoded object if the the _stream_helper was invoked with the decode=True option in the first place.

Added test case to address the specific issue.

@shin-
Copy link
Contributor

shin- commented Aug 23, 2016

Thanks!

Hm, that's interesting. I don't know if we can or should count on the response being a JSON object in that situation. On the other hand, if it's truly an error case like we assume, it doesn't matter whether we pass the json parameter or not.

All in all, seems fairly safe. LGTM!

@shin- shin- merged commit fb41965 into docker:master Aug 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants