This commit is contained in:
Moon Man 2023-12-31 00:00:22 -05:00
parent 53faaf4887
commit 960c466f97
1 changed files with 2 additions and 2 deletions

View File

@ -59,11 +59,11 @@ export const signedFetch = async (url: string, init: RequestInit, signedInit: Si
for (const [key, value] of signedHeaders) {
newHeaders.set(key, value);
}
init.headers = newHeaders;
}
else throw "unsupported headers type"; // Lazy.
console.log(init.body, Headers.toString());
return fetch(url, {
...init,
headers: newHeaders