-
Notifications
You must be signed in to change notification settings - Fork 10.4k
IISHttpContext.FeatureCollection.Protocol recognizes HTTP/2 #14412
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
Conversation
src/Servers/IIS/IIS/src/Core/IISHttpContext.FeatureCollection.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but I'll leave it to @Tratcher to sign-off
{ | ||
internal static class Extensions | ||
{ | ||
public static string GetHttpProtocolVersion(this Version version) => version switch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooooh, fancy new C# 8.0 features 😜
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 it's a better showcase than the one from the docs 😃
Thanks |
Unit tests that both Kestrel and IIS has the correct value? |
When I should add tests, please give me some pointers where to put them (aside from the question in the description above). For me this are too many server projects* -- so maybe someone else can add these tests... * in the positive sense, but I'm not too familiar with them |
Addresses #14139
A difficult change 😉
Could not find any explicit tests for this -- aren't there any?