From 5833b4e56b648afb2695feb7c9324c0b1193c388 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 27 Jul 2018 15:18:09 +0300 Subject: Make submit request manifest values order to match doucmentation --- mod/mod-submit.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mod') 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 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 : ""); } -- cgit v1.1