Skip to content

Commit

Permalink
fix(transport): Add content-type for Unimplemented (#434)
Browse files Browse the repository at this point in the history
Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
  • Loading branch information
entropitor and LucioFranco committed Aug 21, 2020
1 parent bec4936 commit 594a542
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tonic/src/transport/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,7 @@ impl Service<Request<Body>> for Unimplemented {
http::Response::builder()
.status(200)
.header("grpc-status", "12")
.header("content-type", "application/grpc")
.body(BoxBody::empty())
.unwrap(),
)
Expand Down

0 comments on commit 594a542

Please sign in to comment.