Skip to content

Commit cf1f80a

Browse files
committed
fix(route/rumble): rely on default request headers
1 parent 8555624 commit cf1f80a

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

lib/routes/rumble/channel.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { load } from 'cheerio';
22
import type { Element } from 'domhandler';
33

4-
import { config } from '@/config';
54
import type { DataItem, Route } from '@/types';
65
import { ViewType } from '@/types';
76
import cache from '@/utils/cache';
@@ -137,9 +136,6 @@ function renderDescription(image: string | undefined, description: string | unde
137136
function fetchVideoDetails(link: string) {
138137
return cache.tryGet(link, async () => {
139138
const response = await ofetch(link, {
140-
headers: {
141-
'user-agent': config.trueUA,
142-
},
143139
retryStatusCodes: [403],
144140
});
145141

@@ -211,9 +207,6 @@ async function handler(ctx) {
211207
const channelUrl = new URL(`/c/${encodeURIComponent(channel)}`, rootUrl).href;
212208

213209
const response = await ofetch(channelUrl, {
214-
headers: {
215-
'user-agent': config.trueUA,
216-
},
217210
retryStatusCodes: [403],
218211
});
219212

0 commit comments

Comments
 (0)