From b781e0eeafba76141556afefcfe7514278795993 Mon Sep 17 00:00:00 2001 From: Annelein <48122190+Annelein@users.noreply.github.com> Date: Mon, 14 Feb 2022 16:34:16 +0100 Subject: [PATCH] Update packages/core/src/transport/HttpOutboundTransport.ts Co-authored-by: Timo Glastra Signed-off-by: annelein --- packages/core/src/transport/HttpOutboundTransport.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/transport/HttpOutboundTransport.ts b/packages/core/src/transport/HttpOutboundTransport.ts index f3de7a240b..f19330578c 100644 --- a/packages/core/src/transport/HttpOutboundTransport.ts +++ b/packages/core/src/transport/HttpOutboundTransport.ts @@ -78,7 +78,7 @@ export class HttpOutboundTransport implements OutboundTransport { try { const encryptedMessage = JSON.parse(responseMessage) - if (!isValidJweStucture(responseMessage)) { + if (!isValidJweStucture(encryptedMessage)) { this.logger.error( `Received a response from the other agent but the structure of the incoming message is not a DIDComm message: ${responseMessage}` )