fix(build): Add content-type for generated unimplemented service (#441)

This commit is contained in:
Ximo Guanter
2020-08-31 09:56:58 -04:00
committed by GitHub
parent 40e64b53a7
commit 62c1230117
+1
View File
@@ -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())
}),