-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
transport: validate http 200 status for responses #4474
Merged
Merged
Changes from 3 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
fe87cc5
Validate http 200 for all non-end-of-stream messages
JNProtzman 154e687
Add additional test
JNProtzman e437a72
Merge branch 'master' of https://github.com/grpc/grpc-go into http_200
JNProtzman 9cb2546
Add test for bad http status code in gRPC mode
JNProtzman 17d7508
Merge branch 'master' of https://github.com/grpc/grpc-go into http_200
JNProtzman 71ad202
fix error messages
JNProtzman 29c60a1
Merge branch 'master' of https://github.com/grpc/grpc-go into http_200
JNProtzman 0e104a3
new test case, fix error messaging
JNProtzman 17758ef
address pr comments
JNProtzman 6de802f
Merge branch 'master' of https://github.com/grpc/grpc-go into http_200
JNProtzman 399b76e
Fix test log, pr comments
JNProtzman 253fd40
Merge branch 'master' of https://github.com/grpc/grpc-go into http_200
JNProtzman 1446920
Use status in error instead of proto, add String method to Status
JNProtzman fa0bff4
Merge branch 'master' of https://github.com/grpc/grpc-go into http_200
JNProtzman efaf7ab
return status directly
JNProtzman c0cda22
Merge branch 'master' of https://github.com/grpc/grpc-go into http_200
JNProtzman 6230a62
pr comment
JNProtzman 43990b6
test updates
JNProtzman 8b0e761
fix go vet issue
JNProtzman 472d502
test endstream and not endstream
JNProtzman 6642a86
Merge branch 'master' of https://github.com/grpc/grpc-go into http_200
JNProtzman adfc275
test grpc-status, not http status
JNProtzman 9207e93
Minor suggestions
JNProtzman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not make
rawStatusCode
a non-pointer and initialize it tocodes.Unknown
instead? Also "rsc" = "Russ Cox" 😆 (github.com/rsc)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've initialized rawStatusCode as
codes.Unknown
instead. When I wrote that I was definitely thinking about Russ haha