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
commit6d2011ac281e3541db5cb8ded55d82dbfd901e7a (patch)
tree443ff41a131733e980651999a8e0578f34d85eb0
parentFolderise variables and another test (diff)
downloadproject2-6d2011ac281e3541db5cb8ded55d82dbfd901e7a.tar.bz2
project2-6d2011ac281e3541db5cb8ded55d82dbfd901e7a.tar.xz
project2-6d2011ac281e3541db5cb8ded55d82dbfd901e7a.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);
}