Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed Aug 24, 2024
1 parent 0ee112b commit 48703da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/src/routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ fn generate_matching_requests<'c>(client: &'c Client, routes: &[Route]) -> Vec<L
.join("&");

let uri = format!("/{}?{}", path, query);
let mut req = client.req(route.method, uri);
let mut req = client.req(route.method.unwrap(), uri);
if let Some(ref format) = route.format {
if let Some(true) = route.method.allows_request_body() {
if let Some(true) = route.method.and_then(|m| m.allows_request_body()) {
req.add_header(ContentType::from(format.clone()));
} else {
req.add_header(Accept::from(format.clone()));
Expand Down

0 comments on commit 48703da

Please sign in to comment.