summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2013-03-18 18:57:21 +0000
committerrandomdan <randomdan@localhost>2013-03-18 18:57:21 +0000
commit1656d0104765e9da64fa9579ff09ba95c104ba31 (patch)
tree443ff41a131733e980651999a8e0578f34d85eb0
parentFolderise variables and another test (diff)
downloadproject2-1656d0104765e9da64fa9579ff09ba95c104ba31.tar.bz2
project2-1656d0104765e9da64fa9579ff09ba95c104ba31.tar.xz
project2-1656d0104765e9da64fa9579ff09ba95c104ba31.zip
Fix route parameter output
-rw-r--r--project2/cgi/cgiProgRouter.cpp4
1 files changed, 3 insertions, 1 deletions
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);
}