Skip to content

Use regular casts for dictionary fallback in HttpHeaders #114759

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

Merged
merged 1 commit into from
Apr 17, 2025

Conversation

MihaZupan
Copy link
Member

While the current logic is totally correct as-is, the perf isn't critical here since we only use the dictionary as a fallback when storing many headers. It's not worth the risk of someone accidentally messing up the logic in the future, e.g. by moving the .As into a helper method that re-reads the field instead of using the local.

@MihaZupan MihaZupan added this to the 10.0.0 milestone Apr 17, 2025
@MihaZupan MihaZupan self-assigned this Apr 17, 2025
@Copilot Copilot AI review requested due to automatic review settings April 17, 2025 02:11
Copy link
Contributor

@Copilot 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 1 out of 1 changed files in this pull request and generated no comments.

Copy link
Contributor

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

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.

2 participants