From 63b28e84dedb35294bf211c52772da8e15ded784 Mon Sep 17 00:00:00 2001 From: "Christopher M. Luciano" Date: Mon, 25 Nov 2019 16:49:03 -0500 Subject: [PATCH] router: use new setPath for header rewrite Signed-off-by: Christopher M. Luciano --- source/common/router/config_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/common/router/config_impl.cc b/source/common/router/config_impl.cc index 4cdf778dd474..26d96468b252 100644 --- a/source/common/router/config_impl.cc +++ b/source/common/router/config_impl.cc @@ -486,7 +486,7 @@ void RouteEntryImplBase::finalizePathHeader(Http::HeaderMap& headers, if (insert_envoy_original_path) { headers.setEnvoyOriginalPath(path); } - headers.setPath()->value(path_rewriter->rewrite(path, matched_path, case_sensitive_)); + headers.setPath(path_rewriter->rewrite(path, matched_path, case_sensitive_)); } }