Skip to content

Commit a9437f0

Browse files
authored
remove encoding on attributes to retrieve in getObjects (#854)
1 parent 067f774 commit a9437f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Algolia.Search/Clients/SearchIndex.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ public async Task<T> GetObjectAsync<T>(string objectId, RequestOptions requestOp
516516
{
517517
var dic = new Dictionary<string, string>
518518
{
519-
{nameof(attributesToRetrieve), WebUtility.UrlEncode(string.Join(",", attributesToRetrieve))}
519+
{ nameof(attributesToRetrieve), string.Join(",", attributesToRetrieve.Select(x => x.Trim())) }
520520
};
521521

522522
requestOptions = requestOptions.AddQueryParams(dic);

0 commit comments

Comments
 (0)