logging
This commit is contained in:
parent
53faaf4887
commit
960c466f97
|
@ -59,11 +59,11 @@ export const signedFetch = async (url: string, init: RequestInit, signedInit: Si
|
||||||
for (const [key, value] of signedHeaders) {
|
for (const [key, value] of signedHeaders) {
|
||||||
newHeaders.set(key, value);
|
newHeaders.set(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
init.headers = newHeaders;
|
|
||||||
}
|
}
|
||||||
else throw "unsupported headers type"; // Lazy.
|
else throw "unsupported headers type"; // Lazy.
|
||||||
|
|
||||||
|
console.log(init.body, Headers.toString());
|
||||||
|
|
||||||
return fetch(url, {
|
return fetch(url, {
|
||||||
...init,
|
...init,
|
||||||
headers: newHeaders
|
headers: newHeaders
|
||||||
|
|
Loading…
Reference in New Issue