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: Fill GRPC_CONTENT_TYPE when handing recover errors #2092

Closed
wants to merge 1 commit into from

Conversation

Manphil
Copy link

@Manphil Manphil commented Dec 7, 2024

Motivation

Fix #2090.

Solution

Filling http content-type in responses when services are cancelled by tonic.

Comment on lines +71 to +72
res.headers_mut()
.insert(http::header::CONTENT_TYPE, GRPC_CONTENT_TYPE);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Status::into_http can be used instead of reimplementing the logic.

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.

Missing HTTP content-type in responses when service timeout
2 participants