From a5b80978c219891dbd75db2f929024e6febf45ee Mon Sep 17 00:00:00 2001 From: Michel Date: Mon, 2 Sep 2024 16:27:40 +0200 Subject: [PATCH] apply HTTP version value --- Core.Arango/Transport/ArangoHttpTransport.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Core.Arango/Transport/ArangoHttpTransport.cs b/Core.Arango/Transport/ArangoHttpTransport.cs index cbbab71d52..304c98b912 100644 --- a/Core.Arango/Transport/ArangoHttpTransport.cs +++ b/Core.Arango/Transport/ArangoHttpTransport.cs @@ -147,6 +147,13 @@ public async Task SendAsync(Type type, HttpMethod m, string url, object private void ApplyHeaders(string transaction, bool auth, HttpRequestMessage msg, IDictionary headers) { +#if NET8_0_OR_GREATER + + msg.Version = _httpClient.DefaultRequestVersion; + msg.VersionPolicy = _httpClient.DefaultVersionPolicy; + +#endif + msg.Headers.Add(HttpRequestHeader.KeepAlive.ToString(), "true"); if (auth && !string.IsNullOrWhiteSpace(_auth))