Skip to content

Commit

Permalink
apply HTTP version value (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-pi authored Sep 2, 2024
1 parent afd8da4 commit 63bda43
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Core.Arango/Transport/ArangoHttpTransport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ public async Task<object> SendAsync(Type type, HttpMethod m, string url, object
private void ApplyHeaders(string transaction, bool auth, HttpRequestMessage msg,
IDictionary<string, string> 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))
Expand Down

0 comments on commit 63bda43

Please sign in to comment.