dotnet / dotnet/dotnet-api-docs

Document .GetLeftPart doesn't do encoding for already encoded unicode characters

Open
#11,254 2 comments 0 reactions 0 assignees View on GitHub
area-System.Net doc-enhancement
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

Hi,
Previously I filed https://github.com/dotnet/dotnet-api-docs/issues/11253. Another undocumented quirk is that the .GetLeftPart method knows if a Uri is already encoded, so calling it again doesn't result in double encoding. This should be included in the official documentation. Discovering small undocumented behaviors during runtime was not a great experience.
We were under assumption it always to encoding based on previous issue.
Overall, this is a useful method because it removes the SAS token from the URI.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.