actix / actix-web

Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.
https://actix.rs
Apache License 2.0
21.6k stars 1.67k forks source link

Normalize Path doesn't appear to work with .wrap #806

Closed glademiller closed 5 years ago

glademiller commented 5 years ago
actix_web::App::new()
            .wrap(actix_web::middleware::Compress::default())
            .wrap(actix_web::middleware::NormalizePath::default())

Results in the following output

error[E0277]: the trait bound `actix_web::middleware::normalize::NormalizePath: actix_service::transform::IntoTransform<_, <impl actix_service::NewService as actix_service::NewService>::Service>` is not satisfied
  --> src/main.rs:59:14
   |
59 |             .wrap(actix_web::middleware::NormalizePath::default())
   |              ^^^^ the trait `actix_service::transform::IntoTransform<_, <impl actix_service::NewService as actix_service::NewService>::Service>` is not implemented for `actix_web::middleware::normalize::NormalizePath`
fafhrd91 commented 5 years ago

current implementation is broken. i will fix it soon

fafhrd91 commented 5 years ago

proper fix is in master