Server: do not hard fail on unknown query parameters

pull/90/head
Tpt 4 years ago
parent 3ccb5ad274
commit e92c36f115
  1. 4
      server/src/main.rs
  2. 2
      wikibase/src/main.rs

@ -373,7 +373,7 @@ fn configure_and_evaluate_sparql_query(
}
"default-graph-uri" => default_graph_uris.push(v.into_owned()),
"named-graph-uri" => named_graph_uris.push(v.into_owned()),
_ => bail_status!(400, "Unexpected parameter: {}", k),
_ => (),
}
}
if let Some(query) = query {
@ -456,7 +456,7 @@ fn configure_and_evaluate_sparql_update(
}
"using-graph-uri" => default_graph_uris.push(v.into_owned()),
"using-named-graph-uri" => named_graph_uris.push(v.into_owned()),
_ => bail_status!(400, "Unexpected parameter: {}", k),
_ => (),
}
}
if let Some(update) = update {

@ -173,7 +173,7 @@ fn configure_and_evaluate_sparql_query(
}
"default-graph-uri" => default_graph_uris.push(v.into_owned()),
"named-graph-uri" => named_graph_uris.push(v.into_owned()),
_ => bail_status!(400, "Unexpected parameter: {}", k),
_ => (),
}
}
if let Some(query) = query {

Loading…
Cancel
Save