Merge pull request #819 from tomy2105/feature/811-812-Send_HTTP_Request_Activity_Enhancements

SendHttpRequest enhancement for form post as well as URL bug resolution
This commit is contained in:
Craig Fowler 2021-03-29 16:45:40 +01:00 committed by GitHub
commit 89e1c604c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ namespace Elsa.Activities.Http
/// The URL to invoke.
/// </summary>
[ActivityProperty(Hint = "The URL to send the HTTP request to.")]
public PathString? Url { get; set; }
public Uri? Url { get; set; }
/// <summary>
/// The HTTP method to use.
@ -65,7 +65,7 @@ namespace Elsa.Activities.Http
[ActivityProperty(
UIHint = ActivityPropertyUIHints.Dropdown,
Hint = "The content type to send with the request.",
Options = new[] { "text/plain", "text/html", "application/json", "application/xml" }
Options = new[] { "text/plain", "text/html", "application/json", "application/xml", "application/x-www-form-urlencoded" }
)]
public string? ContentType { get; set; }