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

Use SearchValues in RequestUtilities.EncodePath #2267

Merged
merged 3 commits into from
Oct 3, 2023

Conversation

MihaZupan
Copy link
Member

Same idea (and therefore similar numbers) as dotnet/aspnetcore#49117.

While I was touching the code, I also added support for using a stackalloced buffer with ValueStringBuilder now that we're targeting TFMs that can always use SkipLocalsInit.

Also removed the if (count == value.Length && !requiresEscaping) path that's unreachable in our case (it's reachable in PathString because there we detect percent-encoded sequences and avoid re-encoding them).

@MihaZupan MihaZupan added this to the YARP 2.x milestone Oct 3, 2023
@MihaZupan MihaZupan self-assigned this Oct 3, 2023
@MihaZupan MihaZupan merged commit 26fc382 into microsoft:main Oct 3, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants