From 0581b296bb7976950b9f60bcf9b9052d9174fd77 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Sun, 22 Apr 2018 18:30:24 +0200 Subject: [PATCH] http: Change the query param key name --- src/bin/raptor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/raptor.rs b/src/bin/raptor.rs index 1ccffd1c3..38c2b96be 100644 --- a/src/bin/raptor.rs +++ b/src/bin/raptor.rs @@ -32,7 +32,7 @@ impl Service for MainService { let mut resp = Response::new(); - if let Some((_, key)) = url.query_pairs().find(|&(ref k, _)| k == "query") { + if let Some((_, key)) = url.query_pairs().find(|&(ref k, _)| k == "q") { let key = key.to_lowercase(); let values = self.map.get(&key).map(|a| &a[..10]); resp.body(&format!("{:?}", values));