From f26a3b39a588b6d4912b525b2748e344f981d0a9 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 13 Nov 2018 05:47:27 +0100 Subject: license: Clean up comments --- license-generator/src/bin/license.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'license-generator/src') diff --git a/license-generator/src/bin/license.rs b/license-generator/src/bin/license.rs index 502f98e..058d274 100644 --- a/license-generator/src/bin/license.rs +++ b/license-generator/src/bin/license.rs @@ -88,13 +88,6 @@ fn main() -> Result<()> { logger::log_request(&req, ¶ms); - // method = req.param("REQUEST_METHOD") - // .unwrap_or("REQUEST_METHOD".into()), - // path = req.param("SCRIPT_NAME") - // .unwrap_or("SCRIPT_NAME".into()), - // query = req.param("QUERY_STRING") - // .unwrap_or("QUERY_STRING".into()), - let mut cx = match pool.get_conn() { Ok(cx) => cx, Err(e) => { @@ -111,10 +104,9 @@ fn main() -> Result<()> { // Get params name, email, secret // Render thank-you page with link to download file }, - "/license/download" => { - // Send Zip file - // method POST + // Respond with a zip archive of the license file + "/license/download" => { match req.param("REQUEST_METHOD") { Some(method) => { if method != "POST" { -- cgit v1.2.3