Skip to content

Commit

Permalink
fix(connector): remove request body the right time
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashilzendegen authored and gingters committed Jul 15, 2024
1 parent 8e27cca commit 601f663
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public async Task<TResponse> HandleAsync(TRequest request, CancellationToken can
try
{
request.BodyContent = await HttpClient.GetStreamAsync(new Uri(_requestEndpoint,
$"{request.RequestId:N}?delete={request.AcknowledgeMode == AcknowledgeMode.ConnectorReceived}"
$"{request.RequestId:N}?delete={request.AcknowledgeMode == AcknowledgeMode.Disabled}"
.ToLowerInvariant()
), CancellationToken.None);
}
Expand All @@ -109,7 +109,7 @@ public async Task<TResponse> HandleAsync(TRequest request, CancellationToken can
{
if (request.AcknowledgeMode == AcknowledgeMode.ConnectorReceived)
{
await _clientRequestHandler.AcknowledgeRequestAsync(request, false);
await _clientRequestHandler.AcknowledgeRequestAsync(request, true);
}
}

Expand Down

0 comments on commit 601f663

Please sign in to comment.