Skip to content

Commit

Permalink
chore: small format change to RequestBuilderImplementation (#1902)
Browse files Browse the repository at this point in the history
Co-authored-by: Glenn <[email protected]>
Co-authored-by: Chris Pulman <[email protected]>
  • Loading branch information
3 people authored Nov 3, 2024
1 parent 8f9663a commit bc3516a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Refit/RequestBuilderImplementation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<object>(p.Key), p.Value);
ret.Options.Set(new HttpRequestOptionsKey<object>(p.Key), p.Value);
#else
ret.Properties.Add(p);
#endif
Expand Down Expand Up @@ -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<KeyValuePair<string, string?>> ParseQueryParameter(
object? param,
Expand Down

0 comments on commit bc3516a

Please sign in to comment.