aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-submit.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-07-27 15:18:09 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-07-27 15:18:09 +0300
commit5833b4e56b648afb2695feb7c9324c0b1193c388 (patch)
tree2f0d18d4e593f9bcc137113bb23cb9d81384feb7 /mod/mod-submit.cxx
parent3a2ddd883fe1b92c63794897b407280fa166be3b (diff)
Make submit request manifest values order to match doucmentation
Diffstat (limited to 'mod/mod-submit.cxx')
-rw-r--r--mod/mod-submit.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/mod-submit.cxx b/mod/mod-submit.cxx
index 5bc00a1..49ffe23 100644
--- a/mod/mod-submit.cxx
+++ b/mod/mod-submit.cxx
@@ -394,7 +394,7 @@ handle (request& rq, response& rs)
//
timestamp ts (system_clock::now ());
- auto rqm = [&a, &sha256sum, &ts, &rq, &rps, &respond_manifest]
+ auto rqm = [&a, &sha256sum, &ts, &simulate, &rq, &rps, &respond_manifest]
(ostream& os) -> bool
{
try
@@ -413,6 +413,9 @@ handle (request& rq, response& rs)
false /* special */,
false /* local */));
+ if (!simulate.empty ())
+ s.next ("simulate", simulate);
+
// Serialize the User-Agent HTTP header and the client IP address.
//
optional<string> ip;
@@ -439,7 +442,7 @@ handle (request& rq, response& rs)
for (const name_value& nv: rps)
{
const string& n (nv.name);
- if (n != "archive" && n != "sha256sum")
+ if (n != "archive" && n != "sha256sum" && n != "simulate")
s.next (n, nv.value ? *nv.value : "");
}