bulljobs don't respect common headers

added the common truth (user-agent.ts) to all bulljob services
This commit is contained in:
Tom Bernens
2026-05-15 20:03:40 -07:00
parent e65e737bee
commit 0561459782
16 changed files with 40 additions and 18 deletions
@@ -4,6 +4,7 @@
*/
import axios, { AxiosInstance } from 'axios';
import { RMAB_USER_AGENT } from '../utils/user-agent';
import https from 'https';
import path from 'path';
import { DOWNLOAD_CLIENT_TIMEOUT } from '../constants/download-timeouts';
@@ -109,6 +110,7 @@ export class TransmissionService implements IDownloadClient {
baseURL: this.baseUrl,
timeout: DOWNLOAD_CLIENT_TIMEOUT,
httpsAgent: this.httpsAgent,
headers: { 'User-Agent': RMAB_USER_AGENT },
});
}