Skip to content

Commit

Permalink
Update HttpEndpointHealthCheck.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
neilr81 authored Jan 17, 2024
1 parent 3905f0c commit a1b95d7
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,12 @@ private static HttpRequestMessage CloneRequestMessage(HttpRequestMessage message
clone.Headers.TryAddWithoutValidation(header.Key, header.Value);
}

#if !NETCOREAPP3_1 && !NETSTANDARD2_0
clone.VersionPolicy = message.VersionPolicy;

foreach (KeyValuePair<string, object?> option in message.Options)
{
clone.Options.Set(new HttpRequestOptionsKey<object?>(option.Key), option.Value);
}
#else
foreach (KeyValuePair<string, object> prop in message.Properties)
{
clone.Properties.Add(prop.Key, prop.Value);
}
#endif

return clone;
}
Expand Down

0 comments on commit a1b95d7

Please sign in to comment.