mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-29 08:14:26 +01:00
http: Change the query param key name
This commit is contained in:
parent
f851227ed4
commit
0581b296bb
@ -32,7 +32,7 @@ impl Service for MainService {
|
|||||||
|
|
||||||
let mut resp = Response::new();
|
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 key = key.to_lowercase();
|
||||||
let values = self.map.get(&key).map(|a| &a[..10]);
|
let values = self.map.get(&key).map(|a| &a[..10]);
|
||||||
resp.body(&format!("{:?}", values));
|
resp.body(&format!("{:?}", values));
|
||||||
|
Loading…
Reference in New Issue
Block a user