Skip to content

Commit

Permalink
Set location header to include returnInternalServerErrorOnFailure=tru…
Browse files Browse the repository at this point in the history
…e if requested
  • Loading branch information
dixonte committed Oct 3, 2024
1 parent e98a84f commit 9df5dae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ static string BuildUrl(string url, params string?[] queryValues)
string formattedInstanceId = Uri.EscapeDataString(instanceId);
string instanceUrl = $"{baseUrl}/runtime/webhooks/durabletask/instances/{formattedInstanceId}";
string? commonQueryParameters = GetQueryParams(client);
response.Headers.Add("Location", BuildUrl(instanceUrl, commonQueryParameters));
response.Headers.Add("Location", BuildUrl(instanceUrl, commonQueryParameters, returnInternalServerErrorOnFailure ? "returnInternalServerErrorOnFailure=true" : ""));
response.Headers.Add("Content-Type", "application/json");

return new
Expand Down

0 comments on commit 9df5dae

Please sign in to comment.