Skip to content

Commit

Permalink
fix(build): Add content-type for generated unimplemented service (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
edrevo authored Aug 31, 2020
1 parent 40e64b5 commit 62c1230
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tonic-build/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ pub fn generate<T: Service>(service: &T, proto_path: &str) -> TokenStream {
Ok(http::Response::builder()
.status(200)
.header("grpc-status", "12")
.header("content-type", "application/grpc")
.body(tonic::body::BoxBody::empty())
.unwrap())
}),
Expand Down

0 comments on commit 62c1230

Please sign in to comment.