From 653cfee3f5fd1089a63779e371df3b21d55f3f95 Mon Sep 17 00:00:00 2001 From: ljoonal <5854483+ljoonal@users.noreply.github.com> Date: Wed, 19 Aug 2020 09:48:00 +0300 Subject: [PATCH] Added details to markdown files about NormalizePath changes --- CHANGES.md | 5 +++++ MIGRATION.md | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index a44b04d40..0a7b26d7d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,10 @@ # Changes +## Unreleased +### Added +* `middleware::NormalizePath` now has configurable behaviour for either always having a trailing slash, + or as the new addition, always trimming trailing slashes. + ## 3.0.0-beta.3 - 2020-08-17 ### Changed * Update `rustls` to 0.18 diff --git a/MIGRATION.md b/MIGRATION.md index 7459b5b2d..0e73b7d47 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -32,6 +32,10 @@ } ``` +* `middleware::NormalizePath` can now also be configured to trim trailing slashes instead of always keeping one. + It will need `middleware::normalize::TrailingSlash` when being constructed with `NormalizePath::new(...)`, + or for an easier migration you can replace `wrap(middleware::NormalizePath)` with `wrap(middleware::NormalizePath::default())`. + ## 2.0.0 * `HttpServer::start()` renamed to `HttpServer::run()`. It also possible to