delete request.headers['host'];

This commit is contained in:
tamaina 2024-07-17 23:03:30 +09:00
parent fe77f216c3
commit b7349e5771

View file

@ -40,6 +40,8 @@ export async function createSignedPost(args: { level: string; key: PrivateKey; u
['(request-target)', 'date', 'host', 'digest'], ['(request-target)', 'date', 'host', 'digest'],
); );
delete request.headers['host'];
return { return {
request, request,
...result, ...result,
@ -66,6 +68,8 @@ export async function createSignedGet(args: { level: string; key: PrivateKey; ur
['(request-target)', 'date', 'host', 'accept'], ['(request-target)', 'date', 'host', 'accept'],
); );
delete request.headers['host'];
return { return {
request, request,
...result, ...result,