Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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. :-)

@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 middlewares 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 middlewares
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RedirectRule not respecting configured scheme
5 participants