From 67baaf143c0b539716490d7a44ecbb8f50ca642f Mon Sep 17 00:00:00 2001 From: "data-plane-api(Azure Pipelines)" Date: Thu, 15 Sep 2022 14:48:39 +0000 Subject: [PATCH] compression: support choosing compressor first when the q-values are same (#23005) Signed-off-by: giantcroc Mirrored from https://github.com/envoyproxy/envoy @ 0e5627d958ee6effca2397bd8babba9ea05d402f --- .../extensions/filters/http/compressor/v3/compressor.proto | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/envoy/extensions/filters/http/compressor/v3/compressor.proto b/envoy/extensions/filters/http/compressor/v3/compressor.proto index bd53c30c..d8cca485 100644 --- a/envoy/extensions/filters/http/compressor/v3/compressor.proto +++ b/envoy/extensions/filters/http/compressor/v3/compressor.proto @@ -22,7 +22,7 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE; // Compressor :ref:`configuration overview `. // [#extension: envoy.filters.http.compressor] -// [#next-free-field: 9] +// [#next-free-field: 10] message Compressor { option (udpa.annotations.versioning).previous_message_type = "envoy.config.filter.http.compressor.v2.Compressor"; @@ -123,4 +123,8 @@ message Compressor { // instead of // ``.compressor...*``. ResponseDirectionConfig response_direction_config = 8; + + // If true, chooses this compressor first to do compression when the q-values in `Accept-Encoding` are same. + // The last compressor which enables choose_first will be chosen if multiple compressor filters in the chain have choose_first as true. + bool choose_first = 9; }