Enable NormalizePath middleware

This allows double slashes in paths
This commit is contained in:
Valentin Brandl 2019-07-29 21:49:25 +02:00
parent 614e5a6da5
commit 55a1405e71
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D

View File

@ -355,6 +355,7 @@ fn start_server() -> Result<()> {
App::new() App::new()
.data(state.clone()) .data(state.clone())
.wrap(middleware::Logger::default()) .wrap(middleware::Logger::default())
.wrap(middleware::NormalizePath)
.service(index) .service(index)
.service(css) .service(css)
.service(favicon32) .service(favicon32)