aboutsummaryrefslogtreecommitdiffstats
path: root/license-generator/src/main.rs
diff options
context:
space:
mode:
authorTeddy Wing2018-11-10 13:58:03 +0100
committerTeddy Wing2018-11-10 13:58:32 +0100
commitd87ed40cd99f6c7dae019cc13b0a16db65d847e5 (patch)
treed43ba5ed3f299af14fcac1449f67c55f10d208c2 /license-generator/src/main.rs
parentdb2c7627cb758f659111cd03d5f9984adca0b433 (diff)
downloaddome-key-web-d87ed40cd99f6c7dae019cc13b0a16db65d847e5.tar.bz2
Parse POST params to a `BTreeMap`
We want a dictionary to be able to remove the Paddle `p_signature` entry.
Diffstat (limited to 'license-generator/src/main.rs')
-rw-r--r--license-generator/src/main.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/license-generator/src/main.rs b/license-generator/src/main.rs
index d428af4..43a9d77 100644
--- a/license-generator/src/main.rs
+++ b/license-generator/src/main.rs
@@ -15,6 +15,7 @@ use simplelog::{Config, LevelFilter, WriteLogger};
use license_generator::database;
use license_generator::errors::*;
+use license_generator::params;
use license_generator::purchaser::Purchaser;
fn main() -> Result<()> {
@@ -61,6 +62,10 @@ fn main() -> Result<()> {
write!(&mut req.stdout(), "\n\nstdin: {}\n", stdin)
.unwrap_or(());
+
+ let p = params::parse(&stdin);
+ write!(&mut req.stdout(), "\n{:?}\n", p)
+ .unwrap_or(());
});
Ok(())