mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-26 20:16:15 +08:00
Update WebRequestActivity.cs (#8071)
Add http DELETE method implement in WebRequestActivity
This commit is contained in:
@@ -48,6 +48,9 @@ namespace Orchard.Workflows.Activities {
|
||||
case "GET":
|
||||
response = httpClient.GetAsync("").Result;
|
||||
break;
|
||||
case "DELETE":
|
||||
response = httpClient.DeleteAsync("").Result;
|
||||
break;
|
||||
case "POST":
|
||||
var format = activityContext.GetState<string>("FormFormat");
|
||||
|
||||
@@ -119,4 +122,4 @@ namespace Orchard.Workflows.Activities {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user