delete request.headers['host'];
This commit is contained in:
parent
fe77f216c3
commit
b7349e5771
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue