delete request.headers['host'];

This commit is contained in:
tamaina 2024-07-17 23:03:30 +09:00
parent fe77f216c3
commit b7349e5771
1 changed files with 4 additions and 0 deletions

View File

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