diff options
author | Teddy Wing | 2018-11-13 05:47:27 +0100 |
---|---|---|
committer | Teddy Wing | 2018-11-13 05:47:27 +0100 |
commit | f26a3b39a588b6d4912b525b2748e344f981d0a9 (patch) | |
tree | dcc77bb4ea34996a1129a576050e0cd91f5ead2e | |
parent | e8f8a6737f6b3a612d6243be94e98dde7071859f (diff) | |
download | dome-key-web-f26a3b39a588b6d4912b525b2748e344f981d0a9.tar.bz2 |
license: Clean up comments
-rw-r--r-- | license-generator/src/bin/license.rs | 12 |
1 files changed, 2 insertions, 10 deletions
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" { |