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 a3bbb63 commit 46c5c73Copy full SHA for 46c5c73
lib/src/HostRedirector.cc
@@ -142,12 +142,9 @@ void HostRedirector::initAndStart(const Json::Value& config)
142
const auto& rules = config["rules"];
143
if (rules.isObject())
144
{
145
- for (const auto& redirectTo : rules)
+ const auto& redirectToList = rules.getMemberNames();
146
+ for (const string redirectToStr : redirectToList)
147
- if (!redirectTo.isString())
148
- continue;
149
-
150
- const string redirectToStr = redirectTo.asString();
151
string redirectToHost, redirectToPath;
152
auto pathIdx = redirectToStr.find('/');
153
if (pathIdx != string::npos)
0 commit comments