fixing webrequest node to encode variables in url

This commit is contained in:
John Andrews
2022-04-21 11:50:16 +12:00
parent 60ec00e2f5
commit e3ac0a0de1
23 changed files with 10 additions and 3 deletions

Binary file not shown.

View File

@@ -84,7 +84,13 @@ public class WebRequest : Node
{
using var client = new HttpClient();
string url = args.ReplaceVariables(this.Url, stripMissing: true);
string url = VariablesHelper.ReplaceVariables(this.Url, args.Variables, true, false, encoder: (string input) =>
{
if (string.IsNullOrEmpty(input))
return string.Empty;
return Uri.EscapeDataString(input);
});
HttpMethod method = this.Method switch
{