Skip to content

add redirect option to NormalizePath#2803

Draft
robjtede wants to merge 1 commit intomainfrom
normalize-path-redirect
Draft

add redirect option to NormalizePath#2803
robjtede wants to merge 1 commit intomainfrom
normalize-path-redirect

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.

1 participant