You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #4124 - Turbo87:original-path, r=JohnTitor
middleware::log_request: Move `OriginalPath` code into `NormalizePath` middleware
The `NormalizePath` middleware is the one that mutates the `path`, so it should also be responsible for saving the original one, if necessary.
This PR slightly changes the logic in that `OriginalPath` is only added to the request extensions if the path has been changed. The `NormalizePath` middleware now defaults to `request.path()`, if `OriginalPath` is not found in the request extensions.
0 commit comments