mirror of
https://github.com/versia-pub/api.git
synced 2025-12-06 16:38:20 +01:00
fix(federation): 🐛 Correctly clone Headers
This commit is contained in:
parent
e076023cff
commit
8f7b2d7bfe
|
|
@ -172,7 +172,9 @@ export class FederationRequester {
|
|||
const headers = new Headers({
|
||||
Accept: "application/json",
|
||||
"User-Agent": DEFAULT_UA,
|
||||
...extra?.headers,
|
||||
...(extra?.headers instanceof Headers
|
||||
? Object.fromEntries(extra.headers.entries())
|
||||
: extra?.headers),
|
||||
});
|
||||
|
||||
if (
|
||||
|
|
|
|||
Loading…
Reference in a new issue