diff --git a/lib/src/HostRedirector.cc b/lib/src/HostRedirector.cc index 01b4fb06ef..5a230b8506 100644 --- a/lib/src/HostRedirector.cc +++ b/lib/src/HostRedirector.cc @@ -23,7 +23,7 @@ bool HostRedirector::redirectingAdvice(const HttpRequestPtr& req, auto& rule = findRule->second; auto& paths = rule.paths; auto& path = req->path(); - auto findPath = paths.find(req->path()); + auto findPath = paths.find(path); if (findPath != paths.end()) { auto& redirectToHost = rule.redirectToHost;