Skip to content

Commit 199ec8b

Browse files
authored
Set http 2.0 for .net 5.0+ (#833)
1 parent 4fd70de commit 199ec8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/KubernetesClient/Kubernetes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ protected override HttpRequestMessage CreateRequest(string relativeUri, HttpMeth
104104
var httpRequest = new HttpRequestMessage();
105105
httpRequest.Method = method;
106106
httpRequest.RequestUri = new Uri(BaseUri, relativeUri);
107-
#if NETSTANDARD2_1_OR_GREATER
107+
#if NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER
108108
httpRequest.Version = HttpVersion.Version20;
109109
#endif
110110
// Set Headers

0 commit comments

Comments
 (0)