Separated media request limits.

This commit is contained in:
DebaucheryLibrarian
2024-10-29 22:42:30 +01:00
parent 070ef182db
commit ea02ec3943
8 changed files with 75 additions and 13 deletions

View File

@@ -619,6 +619,7 @@ async function storeFile(media, options) {
async function fetchHttpSource(source, tempFileTarget, hashStream) {
const res = await http.get(source.src, {
limits: 'media',
headers: {
...(source.referer && { referer: source.referer }),
...(source.host && { host: source.host }),