Skip to content

Commit

Permalink
router: use new setPath for header rewrite
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
  • Loading branch information
Christopher M. Luciano committed Nov 25, 2019
1 parent e69e5d6 commit 63b28e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/common/router/config_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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_));
}
}

Expand Down

0 comments on commit 63b28e8

Please sign in to comment.