mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-23 14:46:07 +09:00
[backend] Limit fetched JSON-LD context size to 1MB
This commit is contained in:
parent
62d9c743a5
commit
d9d6dc1b60
@ -126,6 +126,7 @@ export class LdSignature {
|
||||
headers: {
|
||||
Accept: "application/ld+json, application/json",
|
||||
},
|
||||
size: 1024 * 1024, // 1MiB
|
||||
// TODO
|
||||
//timeout: this.loderTimeout,
|
||||
agent: (u) => (u.protocol === "http:" ? httpAgent : httpsAgent),
|
||||
|
Loading…
Reference in New Issue
Block a user