File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 1
- use crate :: { body:: Body , metadata :: GRPC_CONTENT_TYPE , server:: NamedService , Status } ;
2
- use http:: { HeaderValue , Request , Response } ;
1
+ use crate :: { body:: Body , server:: NamedService , Status } ;
2
+ use http:: { Request , Response } ;
3
3
use std:: {
4
4
convert:: Infallible ,
5
5
fmt,
@@ -135,13 +135,9 @@ impl From<axum::Router> for Routes {
135
135
}
136
136
}
137
137
138
- async fn unimplemented ( ) -> impl axum:: response:: IntoResponse {
139
- let status = http:: StatusCode :: OK ;
140
- let headers = [
141
- ( Status :: GRPC_STATUS , HeaderValue :: from_static ( "12" ) ) ,
142
- ( http:: header:: CONTENT_TYPE , GRPC_CONTENT_TYPE ) ,
143
- ] ;
144
- ( status, headers)
138
+ async fn unimplemented ( ) -> Response < Body > {
139
+ let ( parts, ( ) ) = Status :: unimplemented ( "" ) . into_http :: < ( ) > ( ) . into_parts ( ) ;
140
+ Response :: from_parts ( parts, Body :: empty ( ) )
145
141
}
146
142
147
143
impl < B > Service < Request < B > > for Routes
You can’t perform that action at this time.
0 commit comments