Skip to content

Commit

Permalink
Fix deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriansaliou committed Aug 11, 2023
1 parent 3ff07dc commit 1a61b86
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/responder/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
// License: Mozilla Public License v2.0 (MPL v2.0)

use actix_web::{
dev::ServiceRequest, guard, middleware, rt, web, App, Error as ActixError, HttpServer,
dev::ServiceRequest,
guard,
middleware::{self, TrailingSlash},
rt, web, App, Error as ActixError, HttpServer,
};
use actix_web_httpauth::{
extractors::{
Expand Down Expand Up @@ -46,7 +49,7 @@ pub fn run() {
let server = HttpServer::new(move || {
App::new()
.app_data(web::Data::new(tera.clone()))
.wrap(middleware::NormalizePath::default())
.wrap(middleware::NormalizePath::new(TrailingSlash::Trim))
.service(routes::assets_javascripts)
.service(routes::assets_stylesheets)
.service(routes::assets_images)
Expand Down

0 comments on commit 1a61b86

Please sign in to comment.