Skip to content
Snippets Groups Projects
Commit 618e625a authored by Josh Bell's avatar Josh Bell
Browse files
QAR-356 Merge of DPO-12
parent 1be80e5c
No related branches found
No related tags found
Loading
...@@ -134,6 +134,9 @@ std::string LLServiceBuilder::buildServiceURI( ...@@ -134,6 +134,9 @@ std::string LLServiceBuilder::buildServiceURI(
std::string::iterator end(service_url.end()); std::string::iterator end(service_url.end());
std::string::iterator deepest_node(service_url.end()); std::string::iterator deepest_node(service_url.end());
std::string::iterator deepest_node_end(service_url.end()); std::string::iterator deepest_node_end(service_url.end());
//parse out the variables to replace by going through {}s one at a time,
// starting with the "deepest" in series {{}},
// and otherwise replacing right-to-left
for(; iter != end; ++iter) for(; iter != end; ++iter)
{ {
switch(*iter) switch(*iter)
...@@ -163,7 +166,7 @@ std::string LLServiceBuilder::buildServiceURI( ...@@ -163,7 +166,7 @@ std::string LLServiceBuilder::buildServiceURI(
{ {
break; break;
} }
//replace the variable we found in the {} above.
// *NOTE: since the c++ implementation only understands // *NOTE: since the c++ implementation only understands
// params and straight string substitution, so it's a // params and straight string substitution, so it's a
// known distance of 2 to skip the directive. // known distance of 2 to skip the directive.
...@@ -181,7 +184,7 @@ std::string LLServiceBuilder::buildServiceURI( ...@@ -181,7 +184,7 @@ std::string LLServiceBuilder::buildServiceURI(
} }
else else
{ {
llinfos << "Unknown key: " << key << llendl; llwarns << "Unknown key: " << key << " in option map: " << LLSDOStreamer<LLSDNotationFormatter>(option_map) << llendl;
keep_looping = false; keep_looping = false;
} }
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment