aboutsummaryrefslogtreecommitdiffstats
path: root/license-generator/src/bin
diff options
context:
space:
mode:
authorTeddy Wing2018-11-13 06:12:35 +0100
committerTeddy Wing2018-11-13 06:12:35 +0100
commit683180a7edf6d2d23fbfd60471d3e811a0ffe4cd (patch)
tree3b77064adca3710c665d2b76154263cd1825bd31 /license-generator/src/bin
parentf26a3b39a588b6d4912b525b2748e344f981d0a9 (diff)
downloaddome-key-web-683180a7edf6d2d23fbfd60471d3e811a0ffe4cd.tar.bz2
license: Send 400 Bad Request if requested with incorrect parameters
Diffstat (limited to 'license-generator/src/bin')
-rw-r--r--license-generator/src/bin/license.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/license-generator/src/bin/license.rs b/license-generator/src/bin/license.rs
index 058d274..3abac9d 100644
--- a/license-generator/src/bin/license.rs
+++ b/license-generator/src/bin/license.rs
@@ -180,6 +180,8 @@ Content-Disposition: attachment; filename=\"dome-key-license.zip\"\n\n")
email.unwrap_or(&Cow::Borrowed("")),
secret.unwrap_or(&Cow::Borrowed("")),
);
+
+ return response::error_400(&mut req.stdout());
}
},
_ => (),