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

Fix error field always in chunk response #64

Merged

Conversation

mwitkow
Copy link
Member

@mwitkow mwitkow commented Oct 21, 2015

Because the responseStreamError was an embedded object and not a pointer, it was always added to the response (the omitempty didn't work).

Moving it to be a pointer solves the problem and makes good results always have only result field, while errors only have the error field.

@yugui
Copy link
Member

yugui commented Oct 22, 2015

LGTM

yugui added a commit that referenced this pull request Oct 22, 2015
@yugui yugui merged commit b2a7448 into grpc-ecosystem:master Oct 22, 2015
ithinker1991 pushed a commit to tronprotocol/grpc-gateway that referenced this pull request Jun 20, 2018
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