Skip to content

Commit 1c35926

Browse files
committed
Update
1 parent 44779b8 commit 1c35926

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

src/Merge.Client/Core/RawClient.cs

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,22 @@ Dictionary<string, object> inputDict
265265
result.Add(new KeyValuePair<string, string>(kvp.Key, str));
266266
break;
267267
case IEnumerable<string> strList:
268-
result.Add(new KeyValuePair<string, string>(kvp.Key, string.Join(",", strList)));
269-
break;
270-
case IEnumerable<object> objList:
271-
result.Add(new KeyValuePair<string, string>(kvp.Key, string.Join(",", objList)));
268+
{
269+
if (kvp.Key == "expand")
270+
{
271+
result.Add(new KeyValuePair<string, string>(kvp.Key, string.Join(",", strList)));
272+
}
273+
else
274+
{
275+
276+
foreach (var value in strList)
277+
{
278+
result.Add(new KeyValuePair<string, string>(kvp.Key, value));
279+
}
280+
}
281+
272282
break;
283+
}
273284
}
274285
}
275286

0 commit comments

Comments
 (0)