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,