Filter qhash query parameter.

This commit is contained in:
Kavin 2023-11-20 08:09:38 +00:00
parent dfe87e0292
commit 01697ebb86
No known key found for this signature in database
GPG Key ID: 6E4598CA5C92C41F
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ async fn index(req: HttpRequest) -> Result<HttpResponse, Box<dyn Error>> {
let collected = query
.into_pairs()
.into_iter()
.filter(|(key, _)| key != "host" && key != "rewrite")
.filter(|(key, _)| !matches!(key.as_str(), "host" | "rewrite" | "qhash"))
.collect::<Vec<_>>();
QString::new(collected)
};