Skip to content

Commit f4c93b3

Browse files
committed
Fix form content payload
1 parent 4da2144 commit f4c93b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

smsapi/NativeHttpClientHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private static HttpContent ConvertRequestDataToHttpContent(
6363
return new StringContent(JsonSerializer.Serialize(collectionDictionary), Encoding.UTF8, "application/json");
6464

6565
var contentCollection = collectionDictionary.Keys
66-
.Select(key => new KeyValuePair<string, string>(key, collectionDictionary[key]))
66+
.Select(key => new KeyValuePair<string, string>(key, collectionDictionary[key]?.ToString()))
6767
.ToList();
6868

6969
var formUrlEncodedContent = new FormUrlEncodedContent(contentCollection);

0 commit comments

Comments
 (0)