You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use CultureInfo.InvariantCulture by default when converting parameter values to strings (#2354)
Previously, AddParameter<T>, AddQueryParameter<T>, AddUrlSegment<T>,
AddHeader<T>, AddOrUpdateParameter<T>, AddOrUpdateHeader<T>, and
Parameter.CreateParameter all used ToString() which respects the current
culture. This caused issues on non-English locales where e.g. 1.234 would
be formatted as "1,234" with a comma decimal separator.
All generic overloads now default to InvariantCulture and accept an optional
CultureInfo parameter for callers who need locale-specific formatting.
Fixes#2270
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments