Skip to content

Commit

Permalink
Missed a place where the uri should be encoded
Browse files Browse the repository at this point in the history
  • Loading branch information
Caelan Sayler committed Nov 10, 2017
1 parent 7a1760e commit 193dae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TypeGap/GapApiGenerator.cs
Expand Up @@ -283,7 +283,7 @@ protected virtual string BuildUrlString(ApiActionDesc action, string template, A
if (finalGetParameters.Any())
{
url.Append("?");
url.Append(String.Join("&", finalGetParameters.Select(p => $"{p.ParameterName}=\" + {p.ParameterName} + \"")));
url.Append(String.Join("&", finalGetParameters.Select(p => $"{p.ParameterName}=\" + encodeURIComponent({p.ParameterName}) + \"")));
}

return "\"" + _rewriter(url.ToString().TrimStart('/')) + "\"";
Expand Down

0 comments on commit 193dae4

Please sign in to comment.