Skip to content

Commit

Permalink
Pass metadata object to ResolveTokens() for HTTP Client POST bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
daleghent committed Oct 8, 2024
1 parent b0d8ed0 commit f205a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HTTP/HttpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public override async Task Execute(IProgress<ApplicationStatus> progress, Cancel
if (HttpMethod == HttpMethodEnum.GET) {
response = await client.GetAsync(resolvedUri, ct);
} else if (HttpMethod == HttpMethodEnum.POST) {
var body = Utilities.Utilities.ResolveTokens(httpPostBody, this);
var body = Utilities.Utilities.ResolveTokens(httpPostBody, this, metadata);
HttpContent httpContent = new StringContent(body);

if (!string.IsNullOrEmpty(httpPostContentType)) {
Expand Down

0 comments on commit f205a95

Please sign in to comment.