summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}