From fce39f75ee60395c81888eaf7984bb261c0850b6 Mon Sep 17 00:00:00 2001 From: "data-plane-api(CircleCI)" Date: Tue, 30 Jul 2019 23:14:13 +0000 Subject: [PATCH] http: Add ability to merge slashes (#7621) Signed-off-by: Ruslan Nigmatullin Mirrored from https://github.com/envoyproxy/envoy @ deccb6e215b2fc0df42481f373c6992024e184f9 --- .../v2/http_connection_manager.proto | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.proto b/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.proto index 7d94ca5b..f579caa5 100644 --- a/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.proto +++ b/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.proto @@ -25,7 +25,7 @@ import "gogoproto/gogo.proto"; // [#protodoc-title: HTTP connection manager] // HTTP connection manager :ref:`configuration overview `. -// [#comment:next free field: 33] +// [#comment:next free field: 34] message HttpConnectionManager { enum CodecType { option (gogoproto.goproto_enum_prefix) = false; @@ -424,6 +424,13 @@ message HttpConnectionManager { // Note that Envoy does not perform // `case normalization ` google.protobuf.BoolValue normalize_path = 30; + + // Determines if adjacent slashes in the path are merged into one before any processing of + // requests by HTTP filters or routing. This affects the upstream *:path* header as well. Without + // setting this option, incoming requests with path `//dir///file` will not match against route + // with `prefix` match set to `/dir`. Defaults to `false`. Note that slash merging is not part of + // `HTTP spec ` and is provided for convenience. + bool merge_slashes = 33; } message Rds {