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); } }