Skip to content

Commit a5b8097

Browse files
committed
apply HTTP version value
1 parent afd8da4 commit a5b8097

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Core.Arango/Transport/ArangoHttpTransport.cs

+7
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ public async Task<object> SendAsync(Type type, HttpMethod m, string url, object
147147
private void ApplyHeaders(string transaction, bool auth, HttpRequestMessage msg,
148148
IDictionary<string, string> headers)
149149
{
150+
#if NET8_0_OR_GREATER
151+
152+
msg.Version = _httpClient.DefaultRequestVersion;
153+
msg.VersionPolicy = _httpClient.DefaultVersionPolicy;
154+
155+
#endif
156+
150157
msg.Headers.Add(HttpRequestHeader.KeepAlive.ToString(), "true");
151158

152159
if (auth && !string.IsNullOrWhiteSpace(_auth))

0 commit comments

Comments
 (0)