// node-fetch will generate this for us. if we keep 'Host', it won't change with redirects!
This commit is contained in:
parent
1f0e7a40b6
commit
de677a5b1f
|
@ -40,6 +40,7 @@ export async function createSignedPost(args: { level: string; key: PrivateKey; u
|
||||||
['(request-target)', 'date', 'host', 'digest'],
|
['(request-target)', 'date', 'host', 'digest'],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// node-fetch will generate this for us. if we keep 'Host', it won't change with redirects!
|
||||||
delete request.headers['Host'];
|
delete request.headers['Host'];
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -68,6 +69,7 @@ export async function createSignedGet(args: { level: string; key: PrivateKey; ur
|
||||||
['(request-target)', 'date', 'host', 'accept'],
|
['(request-target)', 'date', 'host', 'accept'],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// node-fetch will generate this for us. if we keep 'Host', it won't change with redirects!
|
||||||
delete request.headers['Host'];
|
delete request.headers['Host'];
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue