diff --git a/EasyPost/Http/Request.cs b/EasyPost/Http/Request.cs index 3d541041..3e909545 100644 --- a/EasyPost/Http/Request.cs +++ b/EasyPost/Http/Request.cs @@ -131,7 +131,7 @@ private void BuildQueryParameters() var @switch = new SwitchCase { { param.Value is IList, () => listParameters = AddListQueryParameter(listParameters, param.Key, (IList)param.Value) }, - { SwitchCaseScenario.Default, () => query[param.Key] = param.Value.ToString() } + { SwitchCaseScenario.Default, () => query[param.Key] = param.Value.ToString() }, }; @switch.MatchFirstTrue(); } @@ -168,6 +168,7 @@ private static List AddListQueryParameter(List pairs, string key { continue; } + string pair = $"{keyPrefix}={HttpUtility.UrlEncode(itemString)}"; pairs.Add(pair); } diff --git a/EasyPost/Parameters/Tracker/All.cs b/EasyPost/Parameters/Tracker/All.cs index 643fe5de..4e871d74 100644 --- a/EasyPost/Parameters/Tracker/All.cs +++ b/EasyPost/Parameters/Tracker/All.cs @@ -84,7 +84,7 @@ public class All : BaseAllParameters EndDatetime = dictionary.GetOrNull("end_datetime"), Carrier = dictionary.GetOrNull("carrier"), TrackingCode = dictionary.GetOrNull("tracking_code"), - TrackingCodes = dictionary.GetOrNull>("tracking_codes") + TrackingCodes = dictionary.GetOrNull>("tracking_codes"), }; } }