From 988613c84d187d4e83dd101ad922744858d1d1be Mon Sep 17 00:00:00 2001 From: Timothy Makkison Date: Fri, 1 Nov 2024 18:08:22 +0000 Subject: [PATCH] chore: small format change to `RequestBuilderImplementation` --- Refit/RequestBuilderImplementation.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Refit/RequestBuilderImplementation.cs b/Refit/RequestBuilderImplementation.cs index 706ccad7b..99258a8e2 100644 --- a/Refit/RequestBuilderImplementation.cs +++ b/Refit/RequestBuilderImplementation.cs @@ -1008,7 +1008,7 @@ void AddPropertiesToRequest(RestMethodInfoInternal restMethod, HttpRequestMessag foreach (var p in settings.HttpRequestMessageOptions) { #if NET6_0_OR_GREATER - ret.Options.Set(new HttpRequestOptionsKey(p.Key), p.Value); + ret.Options.Set(new HttpRequestOptionsKey(p.Key), p.Value); #else ret.Properties.Add(p); #endif @@ -1049,13 +1049,13 @@ void AddPropertiesToRequest(RestMethodInfoInternal restMethod, HttpRequestMessag #endif } +#if NET6_0_OR_GREATER void AddVersionToRequest(HttpRequestMessage ret) { -#if NET6_0_OR_GREATER ret.Version = settings.Version; ret.VersionPolicy = settings.VersionPolicy; -#endif } +#endif IEnumerable> ParseQueryParameter( object? param,