mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: smzdm
This commit is contained in:
@@ -231,7 +231,7 @@ async function handler(ctx) {
|
||||
|
||||
const response = await got(`https://www.smzdm.com/top/json_more`, {
|
||||
headers: {
|
||||
Referer: 'https://www.smzdm.com/top/',
|
||||
Referer: 'https://www.smzdm.com/top',
|
||||
...getHeaders(),
|
||||
},
|
||||
searchParams: {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { config } from '@/config';
|
||||
|
||||
export const getHeaders = () => ({
|
||||
accept: 'application/json, text/javascript, */*; q=0.01',
|
||||
cookie: config.smzdm.cookie,
|
||||
'x-requested-with': 'XMLHttpRequest',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user