mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-01-06 02:10:19 -06:00
fixing webrequest node to encode variables in url
This commit is contained in:
Binary file not shown.
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user