From 8177248de9162e1595346907b31b35f43ab4954e Mon Sep 17 00:00:00 2001 From: "update-envoy[bot]" <135279899+update-envoy[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 07:23:34 +0000 Subject: [PATCH] [extension inplace change the ImmediateResponse::body type from string to bytes (#33563) * inplace change the ImmediateResponse::body type from string to bytes per discussion this should be a safe swap for c++ Envoy Signed-off-by: Xin Zhuang * add a unit test for non-utf8 body in extenal immediate response Signed-off-by: Xin Zhuang --------- Signed-off-by: Xin Zhuang Mirrored from https://github.com/envoyproxy/envoy @ ab4b6f70b283905d5fcb5ddb0b0be34562873b51 --- envoy/service/ext_proc/v3/external_processor.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envoy/service/ext_proc/v3/external_processor.proto b/envoy/service/ext_proc/v3/external_processor.proto index 5d12ecfa..e1d698ff 100644 --- a/envoy/service/ext_proc/v3/external_processor.proto +++ b/envoy/service/ext_proc/v3/external_processor.proto @@ -339,7 +339,7 @@ message ImmediateResponse { // The message body to return with the response which is sent using the // text/plain content type, or encoded in the grpc-message header. - string body = 3; + bytes body = 3; // If set, then include a gRPC status trailer. GrpcStatus grpc_status = 4;