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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make RedirectRule honor specified scheme #41745

Merged

Conversation

adityamandaleeka
Copy link
Member

Fix #41707

#28903 introduced a behavioral change in RedirectRule where the scheme used in a redirected request overrides the one specified in the redirect configuration.

This fixes that so we now honor the scheme specified in the redirect if there is one.

@ADBailey
Copy link

Looks good to me. Thanks for the fast response and saving me the time to submit a pull request myself. :-)

src/Middleware/Rewrite/src/RedirectRule.cs Outdated Show resolved Hide resolved
src/Middleware/Rewrite/src/RedirectRule.cs Outdated Show resolved Hide resolved
@adityamandaleeka adityamandaleeka enabled auto-merge (squash) May 19, 2022 19:01
@adityamandaleeka
Copy link
Member Author

Updated, thanks for the reviews. This will get merged after the checks pass and should make it into .NET 7 Preview 5. We'll consider this for inclusion in a .NET 6 update as well.

@adityamandaleeka adityamandaleeka merged commit a3eb8b4 into dotnet:main May 19, 2022
@ghost ghost added this to the 7.0-preview5 milestone May 19, 2022
@amcasey amcasey added area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlesware and removed area-runtime labels Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlesware
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RedirectRule not respecting configured scheme
5 participants