aboutsummaryrefslogtreecommitdiffstats
path: root/license-generator/src/params.rs
diff options
context:
space:
mode:
authorTeddy Wing2018-11-11 01:12:38 +0100
committerTeddy Wing2018-11-11 01:47:52 +0100
commite17cffd340476470546e5c27ff03fa134b6e2236 (patch)
tree01b7911843f72eca8116874e6a853734907e39dd /license-generator/src/params.rs
parentf1c118535292fd7aba240713a4b869e00eaccc27 (diff)
downloaddome-key-web-e17cffd340476470546e5c27ff03fa134b6e2236.tar.bz2
main(): Get a map of POST params
Move the call to `params::parse()` from `request::verified()` into `main()`. This enables us to access values from POST params inside the `main()` function. We'll need this to store purchaser name and email address.
Diffstat (limited to 'license-generator/src/params.rs')
-rw-r--r--license-generator/src/params.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/license-generator/src/params.rs b/license-generator/src/params.rs
index 1b234e7..836e920 100644
--- a/license-generator/src/params.rs
+++ b/license-generator/src/params.rs
@@ -3,7 +3,7 @@ use std::collections::BTreeMap;
use url::form_urlencoded;
-pub(crate) fn parse<'a>(params: &'a str) -> BTreeMap<Cow<'a, str>, Cow<'a, str>> {
+pub fn parse<'a>(params: &'a str) -> BTreeMap<Cow<'a, str>, Cow<'a, str>> {
let iter = form_urlencoded::parse(params.as_bytes());
let mut dict = BTreeMap::new();