Skip to content

Commit

Permalink
Set http 2.0 for .net 5.0+ (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiweiv committed Apr 19, 2022
1 parent 4fd70de commit 199ec8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/KubernetesClient/Kubernetes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected override HttpRequestMessage CreateRequest(string relativeUri, HttpMeth
var httpRequest = new HttpRequestMessage();
httpRequest.Method = method;
httpRequest.RequestUri = new Uri(BaseUri, relativeUri);
#if NETSTANDARD2_1_OR_GREATER
#if NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER
httpRequest.Version = HttpVersion.Version20;
#endif
// Set Headers
Expand Down

2 comments on commit 199ec8b

@Paciv
Copy link
Contributor

@Paciv Paciv commented on 199ec8b Apr 19, 2022

Choose a reason for hiding this comment

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

I would like a nuget package including this, any idea when the next release will be done ?
I believe it is preventing the KeepAlive to kick in on watch requests when in net5+.

@tg123
Copy link
Member

@tg123 tg123 commented on 199ec8b Apr 19, 2022

Choose a reason for hiding this comment

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

this is a regression, 7.2.15 is now pushing to nuget.

Please sign in to comment.