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

grpc: skip non-gRPC responses in the variant #5548

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

thc202
Copy link
Member

@thc202 thc202 commented Jul 1, 2024

Check that the response is valid gRPC before trying to decode it, otherwise it would lead to unnecessary warns as the response is not gRPC.

@thc202
Copy link
Member Author

thc202 commented Jul 1, 2024

@amitpanwar789 can you check?

@amitpanwar789
Copy link
Contributor

@amitpanwar789 can you check?

Looks good

kingthorin
kingthorin previously approved these changes Jul 1, 2024
Copy link
Member

Choose a reason for hiding this comment

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

Should probably have some tests 😃

@kingthorin kingthorin dismissed their stale review July 1, 2024 10:45

Dismissing approval review, pending addition of tests 😉

Check that the response is valid gRPC before trying to decode it,
otherwise it would lead to unnecessary warns as the response is not
gRPC.

Signed-off-by: thc202 <thc202@gmail.com>
@thc202 thc202 force-pushed the grpc/variant/skip-no-grpc-resp branch from 4c1d5cb to 2f200b1 Compare July 1, 2024 13:10
Copy link
Member

@kingthorin kingthorin left a comment

Choose a reason for hiding this comment

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

Thanks!

@kingthorin kingthorin merged commit 3350e8c into zaproxy:main Jul 1, 2024
10 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 1, 2024
@thc202 thc202 deleted the grpc/variant/skip-no-grpc-resp branch July 1, 2024 15:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
4 participants