summaryrefslogtreecommitdiffstats
path: root/tests/set4.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/set4.rs')
-rw-r--r--tests/set4.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/set4.rs b/tests/set4.rs
index 5095b6a..89581e2 100644
--- a/tests/set4.rs
+++ b/tests/set4.rs
@@ -215,12 +215,12 @@ fn problem_31() {
let file = "filename.txt";
let got = matasano::crack_hmac_timing(file, |guess| {
let mut params = std::collections::HashMap::new();
- params.insert("file", file);
- params.insert("signature", guess);
+ params.insert("file", file.to_string());
+ params.insert("signature", guess.to_string());
let res = reqwest::get(&format!(
"{}{}",
"http://localhost:9000/?",
- matasano::create_query_string(params)
+ matasano::create_query_string(&params)
))
.unwrap();
let status = res.status();