Skip to content

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

Merged
merged 4 commits into from
Sep 25, 2019

Conversation

gfoidl
Copy link
Member

@gfoidl gfoidl commented Sep 25, 2019

Addresses #14139

A difficult change 😉
Could not find any explicit tests for this -- aren't there any?

@analogrelay analogrelay added this to the 5.0.0-preview1 milestone Sep 25, 2019
Copy link
Contributor

@analogrelay analogrelay left a 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
Copy link
Contributor

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 😜

Copy link
Member Author

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 😃

@Tratcher Tratcher merged commit 752d99c into dotnet:master Sep 25, 2019
@Tratcher
Copy link
Member

Thanks

@gfoidl gfoidl deleted the iis_http2 branch September 25, 2019 16:19
@JamesNK
Copy link
Member

JamesNK commented Sep 25, 2019

Unit tests that both Kestrel and IIS has the correct value?

@gfoidl
Copy link
Member Author

gfoidl commented Sep 25, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants