Merge branch 'develop' into serve-stream

This commit is contained in:
tamaina 2023-01-15 09:37:56 +00:00
commit 16df492dec
506 changed files with 11982 additions and 7864 deletions

View file

@ -65,15 +65,7 @@ export class DownloadService {
const operationTimeout = 60 * 1000;
const maxSize = this.config.maxFileSize ?? 262144000;
const response = await this.undiciFetcher.fetch(
url,
{
method: 'GET',
headers: {
'User-Agent': this.config.userAgent,
},
}
);
const response = await this.undiciFetcher.fetch(url);
if (response.body === null) {
throw new StatusError('No body', 400, 'No body');