We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8541e67 commit 882c1d9Copy full SHA for 882c1d9
lib/src/Redirector.cc
@@ -30,17 +30,17 @@ void Redirector::initAndStart(const Json::Value &config)
30
}
31
std::string protocol, host;
32
bool pathChanged{false};
33
+ for (auto &handler : thisPtr->pathRewriteHandlers_)
34
+ {
35
+ pathChanged |= handler(req);
36
+ }
37
for (auto &handler : thisPtr->handlers_)
38
{
39
if (!handler(req, protocol, host, pathChanged))
40
41
return HttpResponse::newNotFoundResponse(req);
42
43
- for (auto &handler : thisPtr->pathRewriteHandlers_)
- {
- pathChanged |= handler(req);
- }
44
if (!protocol.empty() || !host.empty() || pathChanged)
45
46
std::string url;
0 commit comments