Skip to content

Conversation

@adityamandaleeka
Copy link
Member

Contributes to #46484

Updates the logic in ForwardedHeadersMiddleware dealing with host/port and scheme characters.

Copy link
Member

@JamesNK JamesNK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, assuming there isn't an index off by one error we're missing.

What is unit testing like in this area?

@adityamandaleeka
Copy link
Member Author

Looks good to me, assuming there isn't an index off by one error we're missing.

What is unit testing like in this area?

Unit testing in this area is pretty good (as I learned while working on this and breaking tests 😄).

Feedback addressed.

@adityamandaleeka adityamandaleeka merged commit 3a6acd9 into dotnet:main Mar 29, 2023
@ghost ghost added this to the 8.0-preview4 milestone Mar 29, 2023
@amcasey amcasey added area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares and removed area-runtime labels Jun 2, 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 Perf

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants