Skip to content

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