Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Sanskar Jethi <[email protected]>
  • Loading branch information
VishnuSanal and sansyrox authored Oct 31, 2024
1 parent 059973e commit 36c409d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,7 @@ async fn index(
) -> impl Responder {
let mut request = Request::from_actix_request(&req, payload, &global_request_headers).await;

let mut route = req.method().as_str().to_owned();
route.push_str(req.uri().path());
let route = format!("{}{}", req.method(), req.uri().path());

// Before middleware
// Global
Expand Down

0 comments on commit 36c409d

Please sign in to comment.