From 6d2011ac281e3541db5cb8ded55d82dbfd901e7a Mon Sep 17 00:00:00 2001 From: randomdan Date: Mon, 18 Mar 2013 18:57:21 +0000 Subject: Fix route parameter output --- project2/cgi/cgiProgRouter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project2/cgi/cgiProgRouter.cpp b/project2/cgi/cgiProgRouter.cpp index 6e7f73f..15a8856 100644 --- a/project2/cgi/cgiProgRouter.cpp +++ b/project2/cgi/cgiProgRouter.cpp @@ -176,7 +176,9 @@ class ProgRouter : public Router { p->finishArray(true); p->addNewArray("uriParam", true); BOOST_FOREACH(const auto & v, vars) { - p->addNamedValue("uriParam", v.first); + p->addNewRow("uriParam"); + p->addNamedValue(v.first, v.second); + p->finishRow(); } p->finishArray(true); } -- cgit v1.2.3