aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-submit.cxx
diff options
context:
space:
mode:
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 : "");
}