From c38bfc0255a329a0429e5e01cf79a7e0149938bb Mon Sep 17 00:00:00 2001 From: Codetrauma Date: Mon, 17 Jun 2024 12:34:26 -0700 Subject: [PATCH] feat: adding content-length header to notarization --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 541d066..eb08a19 100644 --- a/src/index.ts +++ b/src/index.ts @@ -57,7 +57,8 @@ export const prove = async ( headers['Host'] = new URL(url).host; headers['Connection'] = 'close'; - + if (body) headers['Content-Length'] = body.length.toString(); + const proof = await tlsn.prove(url, { method, headers,