File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -205,11 +205,13 @@ impl<RspB: Default + hyper::body::HttpBody> respond::Respond<http::Response<RspB
205
205
close. close ( ) ;
206
206
}
207
207
208
+ const SERVER_HEADER : & str = concat ! ( "linkerd-proxy/" , env!( "GIT_VERSION" ) ) ;
208
209
if self . is_grpc {
209
210
let mut rsp = http:: Response :: builder ( )
210
211
. version ( http:: Version :: HTTP_2 )
211
212
. header ( http:: header:: CONTENT_LENGTH , "0" )
212
213
. header ( http:: header:: CONTENT_TYPE , GRPC_CONTENT_TYPE )
214
+ . header ( http:: header:: SERVER , SERVER_HEADER )
213
215
. body ( ResponseBody :: default ( ) )
214
216
. expect ( "app::errors response is valid" ) ;
215
217
let code = set_grpc_status ( & * error, rsp. headers_mut ( ) ) ;
@@ -223,6 +225,7 @@ impl<RspB: Default + hyper::body::HttpBody> respond::Respond<http::Response<RspB
223
225
. version ( self . version )
224
226
. status ( status)
225
227
. header ( http:: header:: CONTENT_LENGTH , "0" )
228
+ . header ( http:: header:: SERVER , SERVER_HEADER )
226
229
. body ( ResponseBody :: default ( ) )
227
230
. expect ( "error response must be valid" ) )
228
231
}
You can’t perform that action at this time.
0 commit comments