Skip to content

Commit

Permalink
Filter qhash query parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
FireMasterK committed Nov 20, 2023
1 parent dfe87e0 commit 01697eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};
Expand Down

0 comments on commit 01697eb

Please sign in to comment.