Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: small format change to RequestBuilderImplementation #1902

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading