From 601f663799d7498a1e316bb772fc8b1a78958fb2 Mon Sep 17 00:00:00 2001 From: Thomas Hilzendegen Date: Mon, 15 Jul 2024 14:09:38 +0200 Subject: [PATCH] fix(connector): remove request body the right time --- .../Targets/ClientRequestWorker.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Thinktecture.Relay.Connector/Targets/ClientRequestWorker.cs b/src/Thinktecture.Relay.Connector/Targets/ClientRequestWorker.cs index 252e0f021..8b9adfdba 100644 --- a/src/Thinktecture.Relay.Connector/Targets/ClientRequestWorker.cs +++ b/src/Thinktecture.Relay.Connector/Targets/ClientRequestWorker.cs @@ -90,7 +90,7 @@ public async Task 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); } @@ -109,7 +109,7 @@ public async Task HandleAsync(TRequest request, CancellationToken can { if (request.AcknowledgeMode == AcknowledgeMode.ConnectorReceived) { - await _clientRequestHandler.AcknowledgeRequestAsync(request, false); + await _clientRequestHandler.AcknowledgeRequestAsync(request, true); } }