Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

add redirect option to NormalizePath #2803

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

robjtede
Copy link
Member

@robjtede robjtede commented Jul 3, 2022

PR Type

Feature

PR Checklist

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt.
  • (Team) Label with affected crates and semver status.

Overview

Add option to short circuit when non-normalized paths are received, returning a redirect to the normalized form.

Required changes to associated types so breaking change. (Really looking forward to RPITIT 馃槶)

Preview of this change is available in actix-web-lab: https://docs.rs/actix-web-lab/0.16.4/actix_web_lab/middleware/struct.NormalizePath.html

@robjtede robjtede added B-semver-major breaking change requiring a major version bump A-web project: actix-web labels Jul 3, 2022
@robjtede robjtede added this to the actix-web v5.0 milestone Jul 3, 2022
@robjtede robjtede changed the title add redirect option to NormalizePath add redirect option to NormalizePath Jul 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-web project: actix-web B-semver-major breaking change requiring a major version bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant