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

Delete duplicative code in WebClient #75896

Merged
merged 1 commit into from
Sep 20, 2022
Merged

Conversation

stephentoub
Copy link
Member

It had its own implementation of URL encoding; we can just use WebUtility.UrlEncode. And it had its own helper for checking whether a byte array had a prefix; we can just use StartsWith.

It had its own implementation of URL encoding; we can just use WebUtility.UrlEncode.  And it had its own helper for checking whether a byte array had a prefix; we can just use StartsWith.
@ghost
Copy link

ghost commented Sep 20, 2022

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

It had its own implementation of URL encoding; we can just use WebUtility.UrlEncode. And it had its own helper for checking whether a byte array had a prefix; we can just use StartsWith.

Author: stephentoub
Assignees: -
Labels:

area-System.Net

Milestone: -

Copy link
Member

@wfurt wfurt left a comment

Choose a reason for hiding this comment

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

Nice.

@stephentoub stephentoub merged commit f2d65eb into dotnet:main Sep 20, 2022
@stephentoub stephentoub deleted the webclientdup branch September 20, 2022 20:05
@ghost ghost locked as resolved and limited conversation to collaborators Oct 21, 2022
@karelz karelz added this to the 8.0.0 milestone Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants