mirror of
https://github.com/kikootwo/ReadMeABook.git
synced 2026-06-05 13:50:11 +00:00
bulljobs don't respect common headers
added the common truth (user-agent.ts) to all bulljob services
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
import axios, { AxiosInstance } from 'axios';
|
||||
import { RMAB_USER_AGENT } from '../utils/user-agent';
|
||||
import * as cheerio from 'cheerio';
|
||||
import { RMABLogger } from '../utils/logger';
|
||||
import { getConfigService } from '../services/config.service';
|
||||
@@ -273,7 +274,7 @@ export class AudibleService {
|
||||
timeout: 10000,
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
'User-Agent': 'ReadMeABook/1.0',
|
||||
'User-Agent': RMAB_USER_AGENT,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -305,7 +306,7 @@ export class AudibleService {
|
||||
timeout: 10000,
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
'User-Agent': 'ReadMeABook/1.0',
|
||||
'User-Agent': RMAB_USER_AGENT,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user