Skip to content

Remove unsafe code from WinHttpHandler TryGetHeaderName helper#114484

Merged
MihaZupan merged 1 commit intodotnet:mainfrom
MihaZupan:http-common-TryGetHeaderName
Apr 10, 2025
Merged

Remove unsafe code from WinHttpHandler TryGetHeaderName helper#114484
MihaZupan merged 1 commit intodotnet:mainfrom
MihaZupan:http-common-TryGetHeaderName

Conversation

@MihaZupan
Copy link
Copy Markdown
Member

The byte-based overload is unused, which lets us delete a bunch of the (unsafe) helper code around it.
It should also be faster now since we don't have 100 delegate calls in that method anymore.

It's also only used from WinHttpHandler, so I removed the references from System.Net.Http.csproj.

@MihaZupan MihaZupan added this to the 10.0.0 milestone Apr 10, 2025
@MihaZupan MihaZupan requested a review from a team April 10, 2025 11:56
@MihaZupan MihaZupan self-assigned this Apr 10, 2025
Copilot AI review requested due to automatic review settings April 10, 2025 11:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 5 changed files in this pull request and generated no comments.

Files not reviewed (2)
  • src/libraries/System.Net.Http/src/System.Net.Http.csproj: Language not supported
  • src/libraries/System.Net.Http/tests/UnitTests/System.Net.Http.Unit.Tests.csproj: Language not supported

@dotnet-policy-service
Copy link
Copy Markdown
Contributor

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

@MihaZupan MihaZupan merged commit 334a4b4 into dotnet:main Apr 10, 2025
85 of 88 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators May 11, 2025
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.

4 participants