Possible bug in workflow webrequest

Topics: Core, Customizing Orchard
Sep 4, 2013 at 8:27 AM
Hi There

I am using workflow web request and passing Key value pairs to an API.
The following method in WebRequestActivity.cs checks for "\n\r"
 private static IEnumerable<KeyValuePair<string, string>> ParseKeyValueString(string text) {
            return Regex.Split(text, "\n\r").Select(x => x.Split(new[] { '=' })).ToDictionary(x => x[0].Trim(), x => x[1].Trim());
        }
My form values only contain "\n"

When I changed the code to
 private static IEnumerable<KeyValuePair<string, string>> ParseKeyValueString(string text) {
            return Regex.Split(text, "\n").Select(x => x.Split(new[] { '=' })).ToDictionary(x => x[0].Trim(), x => x[1].Trim());
        }
My form collection parsed correctly.

Thanks
Stanton
Sep 5, 2013 at 1:25 AM
That should be fixed. Do you mind filing a bug? Thanks!