This commit is contained in:
tamaina 2024-03-04 00:12:11 +00:00
parent 941aed6a14
commit 83f635835e
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ export async function createSignedPost(args: { level: string; key: PrivateKey; u
}, },
}; };
// TODO: levelによって処理を分け // TODO: httpMessageSignaturesImplementationLevelによって新規格で通信をするようにす
const digestHeader = await genRFC3230DigestHeader(args.body, 'SHA-256'); const digestHeader = await genRFC3230DigestHeader(args.body, 'SHA-256');
request.headers['Digest'] = digestHeader; request.headers['Digest'] = digestHeader;
@ -66,7 +66,7 @@ export async function createSignedGet(args: { level: string; key: PrivateKey; ur
}, },
}; };
// TODO: levelによって処理を分け // TODO: httpMessageSignaturesImplementationLevelによって新規格で通信をするようにす
const result = await signAsDraftToRequest(request, args.key, ['(request-target)', 'date', 'host', 'accept']); const result = await signAsDraftToRequest(request, args.key, ['(request-target)', 'date', 'host', 'accept']);
return { return {